How to show/hide a block at some content types using PHP filter? I want to show/hide my block at some content types so I'm using PHP filter. My code in block configuration is:

&lt;?php 
if(arg(0)=='eshop') { return true; }
if(arg(0)=='node' &amp;&amp; is_numeric(arg(1)) {
  return false;
} 
return false;
?&gt;


With this code the block is visible at every page even if it returns false, even if arg(0) is 'node' and arg(1) is 170. But if I use only:

&lt;?php 
if(arg(0)=='eshop') { return true; }
?&gt; 


It will show the block corectly only at /eshop page. 

What is this, a GIANT Drupal bug?
There is another alternative available ... which doesn't require the PHP filter to be enabled (which you should try to avoid whenever possible) ... Just use the Rules block visibility module. Here is a quote from its project page:


  The Rules block visibility module allows Rules components to be used to control block visibility. This provides Drupal administrators and developers extreme flexibility in controlling when blocks should be displayed on their websites, in addition to the default visibility options provided by Drupal.
  
  The general idea is that if you can do it with Rules, you can use it to control block visibility, so the possibilities are limitless.
  
  Need to show a block only for users registered more than a month ago?
  
  Perhaps you have a block that must be shown only between 8am-5pm on weekdays?
  
  What about displaying or hiding a block based on current weather conditions?
  
  All of this can be done by using Rules block visibility.


With that, and as per the "if you can do it with Rules, you can use it to control block visibility" above, you've reduced your question to making Rules "check the path of the current page" (so that the block is only shown for the page with an URL like /eshop).

For an illustration of how to use this module, refer to my answer to "How to stop a Views block from displaying to admins, such as user/1?".