From 305873a984feb189890b1d7b3726ccb82d3b1d76 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 28 May 2005 07:01:14 +0000 Subject: [PATCH] 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. --- includes/Revision.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.20.1