-1 is bad too
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 25 Apr 2008 01:36:27 +0000 (01:36 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 25 Apr 2008 01:36:27 +0000 (01:36 +0000)
includes/LogPage.php

index 86c806d..b24611b 100644 (file)
@@ -75,7 +75,7 @@ class LogPage {
                $dbw->insert( 'logging', $data, $fname );
                $newId = $dbw->insertId();
 
-               $ok = ($dbw->affectedRows() != 0);
+               $ok = ($dbw->affectedRows() > 0);
                # And update recentchanges
                if( $ok && $this->updateRecentChanges ) {
                        # Don't add private logs to RC!