From: <ch...@us...> - 2011-06-14 19:56:49
|
Revision: 34933 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=34933&view=rev Author: chealer Date: 2011-06-14 19:56:42 +0000 (Tue, 14 Jun 2011) Log Message: ----------- [FIX] Comment edition (r33265 regression) thanks chibaguy Modified Paths: -------------- branches/7.x/lib/comments/commentslib.php Modified: branches/7.x/lib/comments/commentslib.php =================================================================== --- branches/7.x/lib/comments/commentslib.php 2011-06-14 19:50:35 UTC (rev 34932) +++ branches/7.x/lib/comments/commentslib.php 2011-06-14 19:56:42 UTC (rev 34933) @@ -2098,7 +2098,7 @@ $existingThread = $comments->fetchColumn('threadId', array('hash' => $hash)); // if exactly same title and data comment does not already exist, and is not the current thread - if (!$result->numRows() || in_array($threadId, $existingThread)) + if (empty($existingThread) || in_array($threadId, $existingThread)) { $object = explode( ":", $objectId, 2); if ($prefs['feature_actionlog'] == 'y') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |