summaryrefslogtreecommitdiff
path: root/includes/db
diff options
context:
space:
mode:
Diffstat (limited to 'includes/db')
-rw-r--r--includes/db/Database.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/db/Database.php b/includes/db/Database.php
index 9f34f812..9d517e4a 100644
--- a/includes/db/Database.php
+++ b/includes/db/Database.php
@@ -1440,6 +1440,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 );