Posted by lyk0s on January 1, 2005 at 6:03pm
Jump to:
| Project: | Article |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | CodeMonkeyX |
| Status: | closed (fixed) |
Issue Summary
While running Drupal 4.5.1 under PHP 5.0, I kept getting ...
strict warning: Creating default object from empty value in /Web/WebFabric/hosts/cybertribe.com/modules/article/article.module on line 290.
Here is a patch that quiets this warning...
bash-2.03# diff -l article.module article.module.orig
290,292c290,292
< $op = "or";
< $tids = article_get_article_terms();
< return article_select_nodes($tids, $op, 0, FALSE, $count);
---
> $taxonomy->operator = "or";
> $taxonomy->tids = article_get_article_terms();
> return article_select_nodes($taxonomy->tids, $taxonomy->operator, 0, FALSE, $count);
Comments
#1
#2