aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 5f5c97107..0ff9b2d26 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1507,7 +1507,7 @@
if (isset($DATALIST_CACHE[$name]))
return $DATALIST_CACHE[$name];
- if ($row = get_data_row("SELECT value from {$CONFIG->dbprefix}datalists where name = '{$name}'")) {
+ if ($row = get_data_row("SELECT value from {$CONFIG->dbprefix}datalists where name = '{$name}' limit 1")) {
$DATALIST_CACHE[$name] = $row->value;
return $row->value;
}