[vanillin commit] r303 - trunk/library/Vanilla/Control

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 20, 2007, 7:48:19 PM10/20/07
to vanilli...@googlegroups.com
Author: helgith
Date: Sat Oct 20 16:47:23 2007
New Revision: 303

Modified:
trunk/library/Vanilla/Control/CommentGrid.php

Log:
We have to return on discussion object failures, else the page just
continues and the user gets fugly php errors

Modified: trunk/library/Vanilla/Control/CommentGrid.php
==============================================================================
--- trunk/library/Vanilla/Control/CommentGrid.php (original)
+++ trunk/library/Vanilla/Control/CommentGrid.php Sat Oct 20 16:47:23 2007
@@ -46,6 +46,7 @@
$this->Discussion =
$DiscussionManager->GetDiscussionById($DiscussionID, $RecordDiscussionView);
if (!$this->Discussion) {
$this->CallDelegate('Constructor');
+ return;
}

$this->Discussion->FormatPropertiesForDisplay();

Reply all
Reply to author
Forward
0 new messages