From: Aaron Schulz Date: Tue, 15 Apr 2008 23:03:41 +0000 (+0000) Subject: Return false if nothing changed X-Git-Tag: 1.31.0-rc.0~48286 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=95491734acf95d01439cd2691293932961e67444;p=lhc%2Fweb%2Fwiklou.git Return false if nothing changed --- 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() {