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

CodeMonkeyX’s picture

Assigned: Unassigned » CodeMonkeyX
Anonymous’s picture