[Tickets #3269] NEW: [patch] Undefined index when attempting moderation

bugs@bugs.horde.org bugs at bugs.horde.org
Sat Jan 14 12:10:06 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3269
-----------------------------------------------------------------------
 Ticket             | 3269
 Created By         | ben at alkaloid.net
 Summary            | [patch] Undefined index when attempting moderation
 Queue              | Agora
 State              | Unconfirmed
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
+New Attachment     | agora-moderation-undef-index.patch
-----------------------------------------------------------------------


ben at alkaloid.net (2006-01-14 12:10) wrote:

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.






More information about the bugs mailing list