summaryrefslogtreecommitdiff
path: root/includes/LinkBatch.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/LinkBatch.php')
-rw-r--r--includes/LinkBatch.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/LinkBatch.php b/includes/LinkBatch.php
index 8ab3393e..20bcd3d4 100644
--- a/includes/LinkBatch.php
+++ b/includes/LinkBatch.php
@@ -158,9 +158,9 @@ class LinkBatch {
}
if (count($dbkeys)==1) { // avoid multiple-reference syntax if simple equality can be used
-
+ $singleKey = array_keys($dbkeys);
$sql .= "({$prefix}_namespace=$ns AND {$prefix}_title=".
- $db->addQuotes(current(array_keys($dbkeys))).
+ $db->addQuotes($singleKey[0]).
")";
} else {
$sql .= "({$prefix}_namespace=$ns AND {$prefix}_title IN (";