From 3cb0559a580b2738c8aa7de601a495a169aa489e Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 6 Nov 2008 16:19:42 +0000 Subject: Not possible to get any more, so tell them so git-svn-id: https://code.elgg.org/elgg/trunk@2416 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') 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; } -- cgit v1.2.3