aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-01 14:24:10 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-01 14:24:10 +0000
commitc8b0cb85b128b91f580db830b56311799905b2fe (patch)
treec28e2cf41a2ca553aa1dd815a185c04bb5361013 /engine/lib
parent9816315e13355806d2e4cb4302a1f81de9c2af89 (diff)
downloadelgg-c8b0cb85b128b91f580db830b56311799905b2fe.tar.gz
elgg-c8b0cb85b128b91f580db830b56311799905b2fe.tar.bz2
$CONFIG->dbprefix, not $CONFIG->prefix
git-svn-id: https://code.elgg.org/elgg/trunk@595 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 999bffce5..37245a6db 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -834,7 +834,7 @@
global $CONFIG;
$name = sanitise_string($name);
- if ($row = get_data_row("select value from {$CONFIG->prefix}datalists where name = '{$name}'")) {
+ if ($row = get_data_row("select value from {$CONFIG->dbprefix}datalists where name = '{$name}'")) {
return $row->value;
}
return false;
@@ -853,8 +853,8 @@
global $CONFIG;
$name = sanitise_string($name);
$value = sanitise_string($value);
- delete_data("delete from {$CONFIG->prefix}datalists where name = '{$name}'");
- insert_data("insert into {$CONFIG->prefix}datalists set name = '{$name}', value = '{$value}'");
+ delete_data("delete from {$CONFIG->dbprefix}datalists where name = '{$name}'");
+ insert_data("insert into {$CONFIG->dbprefix}datalists set name = '{$name}', value = '{$value}'");
return true;
}