Decisions module returns various PHP "Undefined property" notices
| Project: | Decisions |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
When error reporting is set to E_ALL, the decisions module returns the following notices when editing a node.
# notice: Undefined property: stdClass::$uselist in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 96.
# notice: Undefined offset: 2 in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 104.
# notice: Undefined property: stdClass::$quorum_abs in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 122.
# notice: Undefined property: stdClass::$quorum_percent in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 122.
# notice: Undefined property: stdClass::$active in /var/www/drupal6.sites/all/modules/decisions/decisions_node.inc on line 232.
# notice: Undefined property: stdClass::$active in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 43.
# notice: Undefined property: stdClass::$uselist in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 96.
# notice: Undefined offset: 2 in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 104.
# notice: Undefined property: stdClass::$quorum_abs in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 122.
# notice: Undefined property: stdClass::$quorum_percent in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 122.
# notice: Undefined property: stdClass::$active in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 43.
# notice: Undefined property: stdClass::$algorithm in /var/www/drupal6.sites/all/modules/decisions/modes/ranking.module on line 303.
# notice: Undefined property: stdClass::$startdate in /var/www/drupal6.sites/all/modules/decisions/decisions.module on line 260.
# notice: Undefined property: stdClass::$runtime in /var/www/drupal6.sites/all/modules/decisions/decisions.module on line 261.
# notice: Undefined property: stdClass::$uselist in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 96.
# notice: Undefined offset: 2 in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 104.
# notice: Undefined property: stdClass::$uselist in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 96.
# notice: Undefined offset: 2 in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 104.
# notice: Undefined property: stdClass::$quorum_abs in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 122.
# notice: Undefined property: stdClass::$quorum_percent in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 122.
# notice: Undefined offset: 2 in /var/www/drupal6.sites/all/modules/decisions/decisions.inc on line 104.
The issue http://drupal.org/node/399952#comment-1434276 also reports such notices on lines 189, 190 and 196 of decisions_node.inc.
This problem shouldn't affect production sites unless E_NOTICE events are reported.
It would be nice to have this fixed and reviewed, though for the next stable release.

#1
#2