From: Tim Starling Date: Sat, 28 May 2005 07:01:14 +0000 (+0000) Subject: Added LIMIT 1 to revision query, for no particularly good reason. I was going to... X-Git-Tag: 1.5.0alpha2~70 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=305873a984feb189890b1d7b3726ccb82d3b1d76;p=lhc%2Fweb%2Fwiklou.git Added LIMIT 1 to revision query, for no particularly good reason. I was going to pass a condition which matched more than one row but changed my mind. --- diff --git a/includes/Revision.php b/includes/Revision.php index a42ccacbde..b58d50c0af 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -195,7 +195,8 @@ class Revision { 'rev_timestamp', 'rev_deleted' ), $conditions, - 'Revision::fetchRow' ); + 'Revision::fetchRow', + array( 'LIMIT' => 1 ) ); return $db->resultObject( $res ); }