From 1d3934e1ad1dc914d0713c2107b8f2810a606271 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 7 May 2012 15:52:55 +0200 Subject: [PATCH] (bug 36568) Fixed "Illegal string offset 'LIMIT'" warnings in updater No RELEASE-NOTES entry since this is going to be backported and RELEASE-NOTES-1.19 is out of sync. Change-Id: I1ec6c824677606ac6f93cc43345942e4de8bd3f4 --- includes/db/Database.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/db/Database.php b/includes/db/Database.php index 56f17d86b6..6eb51afc75 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -1475,6 +1475,7 @@ abstract class DatabaseBase implements DatabaseType { function selectRow( $table, $vars, $conds, $fname = 'DatabaseBase::selectRow', $options = array(), $join_conds = array() ) { + $options = (array)$options; $options['LIMIT'] = 1; $res = $this->select( $table, $vars, $conds, $fname, $options, $join_conds ); -- 2.20.1