From: Aaron Schulz Date: Fri, 25 Apr 2008 01:36:27 +0000 (+0000) Subject: -1 is bad too X-Git-Tag: 1.31.0-rc.0~48076 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=910ad315b7ad91d751bb2df296aeeaf70890af03;p=lhc%2Fweb%2Fwiklou.git -1 is bad too --- diff --git a/includes/LogPage.php b/includes/LogPage.php index 86c806d63b..b24611b590 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -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!