Summary | [patch] Undefined index when attempting moderation |
Queue | Agora |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | ben (at) alkaloid (dot) net |
Created | 01/14/2006 (7191 days ago) |
Due | |
Updated | 01/15/2006 (7190 days ago) |
Assigned | |
Resolved | 01/15/2006 (7190 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ [patch] Undefined index when attempting moderation
Queue ⇒ Agora
New Attachment: agora-moderation-undef-index.patch
following message is printed to the screen:
Notice: Undefined index: last_message in agora/lib/Messages.php on line 1152
Notice: Undefined index: last_timestamp in agora/lib/Messages.php on line 1155
Notice: Undefined index: last_author in agora/lib/Messages.php on line 1158
Warning: Cannot modify header information - headers already sent by
(output started at agora/lib/Messages.php:1152) in agora/moderate.php
line 32
The problem is due to incorrect array indices. This patch corrects
the index "last_message" to "message_last_message" and does a similar
conversion to the other two indices. This appears to fit the
intention of the attributes code from DataTree.
After applying this patch the errors go away.