From ad94f30fa23b83667c4ade72afaea948807e6b1b Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 20 Nov 2008 11:39:18 +0000 Subject: Refs #569, #570, #571: dbprefix not prefix; git-svn-id: https://code.elgg.org/elgg/trunk@2471 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 85c68c1b6..b1613c1d1 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2165,7 +2165,7 @@ global $CONFIG; $entity_guid = (int) $entity_guid; $name = mysql_real_escape_string($name); - if ($setting = get_data_row("select value from {$CONFIG->prefix}private_settings where name = '{$name}' and entity_guid = {$entity_guid}")) { + if ($setting = get_data_row("select value from {$CONFIG->dbprefix}private_settings where name = '{$name}' and entity_guid = {$entity_guid}")) { return $setting->value; } return false; @@ -2182,7 +2182,7 @@ $entity_guid = (int) $entity_guid; - $result = get_data("select * from {$CONFIG->prefix}private_settings where entity_guid = {$entity_guid}"); + $result = get_data("select * from {$CONFIG->dbprefix}private_settings where entity_guid = {$entity_guid}"); if ($result) { $return = array(); @@ -2210,7 +2210,7 @@ $entity_guid = (int) $entity_guid; $name = mysql_real_escape_string($name); $value = mysql_real_escape_string($value); - return insert_data("insert into {$CONFIG->prefix}private_settings set name = '{$name}', value = '{$value}' where entity_guid = {$entity_guid}"); + return insert_data("insert into {$CONFIG->dbprefix}private_settings set name = '{$name}', value = '{$value}' where entity_guid = {$entity_guid}"); } @@ -2227,7 +2227,7 @@ global $CONFIG; $entity_guid = (int) $entity_guid; $name = mysql_real_escape_string($name); - return delete_data("delete from {$CONFIG->prefix}private_settings where name = '{$name}' and entity_guid = {$entity_guid}"); + return delete_data("delete from {$CONFIG->dbprefix}private_settings where name = '{$name}' and entity_guid = {$entity_guid}"); } @@ -2242,7 +2242,7 @@ global $CONFIG; $entity_guid = (int) $entity_guid; - return delete_data("delete from {$CONFIG->prefix}private_settings where entity_guid = {$entity_guid}"); + return delete_data("delete from {$CONFIG->dbprefix}private_settings where entity_guid = {$entity_guid}"); } /** -- cgit v1.2.3