From: Brent Garber Date: Thu, 3 Jan 2013 23:05:17 +0000 (+0000) Subject: Fix changes for Ia1878588 to work with databases that use non-integer timestamps. X-Git-Tag: 1.31.0-rc.0~20975 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=58bff0230af970775020b5647e9ce343f89ed1cd;p=lhc%2Fweb%2Fwiklou.git Fix changes for Ia1878588 to work with databases that use non-integer timestamps. Change-Id: Id51ab135baa35440005b38f2f2f466f4378deb31 --- diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 642515b1db..dedc61f29e 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -601,8 +601,8 @@ class InfoAction extends FormlessAction { 'revision', 'COUNT(rev_page)', array( - 'rev_page' => $id , - "rev_timestamp >= $threshold" + 'rev_page' => $id, + "rev_timestamp >= " . $dbr->addQuotes( $threshold ) ), __METHOD__ ); @@ -614,7 +614,7 @@ class InfoAction extends FormlessAction { 'COUNT(DISTINCT rev_user_text)', array( 'rev_page' => $id, - "rev_timestamp >= $threshold" + "rev_timestamp >= " . $dbr->addQuotes( $threshold ) ), __METHOD__ );