From 95491734acf95d01439cd2691293932961e67444 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 15 Apr 2008 23:03:41 +0000 Subject: [PATCH] Return false if nothing changed --- includes/LogPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index df1eddb7d4..041d05ce5e 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -85,7 +85,7 @@ class LogPage { $this->type, $this->action, $this->target, $this->comment, $this->params, $newId ); } } - return true; + return ($dbw->affectedRows() > 0); } public function getRcComment() { -- 2.20.1