[development] Block PHP code returns true

Dave Cohen drupal at dave-cohen.com
Fri Aug 31 01:46:27 UTC 2007


Try something like this to help you track it down:

<?php
if($_COOKIE['FONALITYreseller']) {
   drupal_set_message("returning TRUE");
   return TRUE;
 } else {
    drupal_set_message("returning FALSE");
    return FALSE;
}
?>

And, this is just a hunch, delete any extra whitespace after your "?>".

-Dave

On Thursday 30 August 2007 16:36, Tony Guntharp wrote:
> Rob,
> I am using that in the block visibility PHP code yes. The cookie is
> in firefox yet it's not showing the block. A var_dump is returning:
> bool(false)
>
> -t
>


More information about the development mailing list