Closed (fixed)
Project:
Article
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
1 Jan 2005 at 18:03 UTC
Updated:
3 Apr 2005 at 23:15 UTC
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
Comment #1
CodeMonkeyX commentedComment #2
(not verified) commented