6.0.0-beta1
9/22/25

[#3269] [patch] Undefined index when attempting moderation
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

History
01/15/2006 04:24:15 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Committed - thanks!
01/14/2006 08:10:06 PM ben (at) alkaloid (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ [patch] Undefined index when attempting moderation
Queue ⇒ Agora
New Attachment: agora-moderation-undef-index.patch Download
Reply to this comment
When trying to accept a new message in a moderated forum, the 
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.




Saved Queries