Fork me on GitHub
Math for the people, by the people.

User login

add new forum topic gives error report.

Primary tabs

add new forum topic gives error report.

when I add a new forum topic to the planetary bugs forum I get

Notice: Trying to get property of non-object in eval() (line 7 of /home/joe/staging/beta/modules/php/php.module(80) : eval()’d code). Notice: Trying to get property of non-object in eval() (line 8 of /home/joe/staging/beta/modules/php/php.module(80) : eval()’d code). Notice: Trying to get property of non-object in eval() (line 9 of /home/joe/staging/beta/modules/php/php.module(80) : eval()’d code). Notice: Trying to get property of non-object in eval() (line 10 of /home/joe/staging/beta/modules/php/php.module(80) : eval()’d code). Notice: Trying to get property of non-object in eval() (line 11 of /home/joe/staging/beta/modules/php/php.module(80) : eval()’d code). Notice: Trying to get property of non-object in eval() (line 12 of /home/joe/staging/beta/modules/php/php.module(80) : eval()’d code).


<?php
if(drupal_is_front_page()){
  return false;
}
// previously missing the second condition here
if(arg(0) == "node" && is_numeric(arg(1))){
 $node=node_load(arg(1));
 if(   $node->type == "article"
    || $node->type == "group"
    || $node->type == "problem"
    || $node->type == "solution"
    || $node->type == "question"
    || $node->type == "collection")
  return true;
else
 return false;
}
return false;
?>
Subscribe to Comments for "add new forum topic gives error report. "