From 910ad315b7ad91d751bb2df296aeeaf70890af03 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 25 Apr 2008 01:36:27 +0000 Subject: [PATCH] -1 is bad too --- includes/LogPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! -- 2.20.1