From: Aaron Schulz Date: Mon, 25 Feb 2008 05:58:10 +0000 (+0000) Subject: Don't allow double logging of patrol events X-Git-Tag: 1.31.0-rc.0~49377 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=72f6c42844489f2ea324bad800c5ec4f72f257c7;p=lhc%2Fweb%2Fwiklou.git Don't allow double logging of patrol events --- diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 750404a9f5..4c8fe1b83e 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -238,6 +238,7 @@ class RecentChange * Mark a given change as patrolled * * @param mixed $change RecentChange or corresponding rc_id + * @returns integer number of affected rows */ public static function markPatrolled( $change ) { $rcid = $change instanceof RecentChange @@ -254,6 +255,7 @@ class RecentChange ), __METHOD__ ); + return $dbw->affectedRows(); } # Makes an entry in the database corresponding to an edit