I get f.e. those:
notice: Undefined property: stdClass::$book in /var/www/web298/html/content/sites/all/modules/print/print.module on line 126.
notice: Undefined variable: query in /var/www/web298/html/content/sites/all/modules/print/print.module on line 142.
notice: Undefined variable: query in /var/www/web298/html/content/sites/all/modules/print/print_pdf.module on line 89.
notice: Undefined property: stdClass::$type in /var/www/web298/html/content/sites/all/modules/print/print.module on line 126.
notice: Undefined property: stdClass::$book in /var/www/web298/html/content/sites/all/modules/print/print.module on line 126.
notice: Undefined property: stdClass::$type in /var/www/web298/html/content/sites/all/modules/print/print.module on line 126.
notice: Undefined property: stdClass::$book in /var/www/web298/html/content/sites/all/modules/print/print.module on line 126.
right now can't be bothered to submit a patch but it should be easy to add if isset($foo) to all those lines...
else this works really nicely.. btw I would rather have those icons at the top of the relevant notes though..
another thing, the comments should be stripped from it's links (reply, edit...), I guess noone would want those on a printout :)
aight thx for your work regards
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | undefined_variables_print_fill_attributes-230457.patch | 897 bytes | ultimike |
Comments
Comment #1
jcnventuraHow do you get these warnings? I never saw any of them..
Do you use
João
Comment #2
eMPee584 commentedwell you have to torn on error reporting in the drupal config... only warnings but ugly nonetheless, it seems most people and even module devs have them switched off...
by the way the coder module has a code review feature try that if you feel like it ;)
Comment #3
jcnventuraHi,
Thanks for the info. In an unrelated patch, merged yesterday, I think you will no longer see the 'query' undefined variable messages. The remaining two undefined properties will require a specific line checking if they are set.
I do use the coder module regularly, btw..
João
Comment #4
jcnventurahttp://drupal.org/node/230761 should fix these
Comment #5
ultimike@jcnventura - http://drupal.org/node/230761 is for Drupal 7, the issue still exists on Drupal 6.
Here's a patch to get the ball rolling on Drupal 6 - this only fixes a few of them, but it's a start...
Thanks,
-mike