Return false if nothing changed
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 15 Apr 2008 23:03:41 +0000 (23:03 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 15 Apr 2008 23:03:41 +0000 (23:03 +0000)
includes/LogPage.php

index df1eddb..041d05c 100644 (file)
@@ -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() {