From fc5d1e5d74124de0dd8de361fe08e83653f960a2 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 27 Dec 2009 12:41:52 -0800 Subject: Fix a bug where we weren't replacing table names when there's no prefix. This is wrong because even when there's no prefix we have to get rid of the {curly} braces. --- modules/gallery/libraries/MY_Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/gallery/libraries/MY_Database.php b/modules/gallery/libraries/MY_Database.php index de3e5a84..61f23fb0 100644 --- a/modules/gallery/libraries/MY_Database.php +++ b/modules/gallery/libraries/MY_Database.php @@ -39,7 +39,7 @@ abstract class Database extends Database_Core { * table prefix . $1 */ public function query($sql = '') { - if ($this->config["table_prefix"] && !empty($sql)) { + if (!empty($sql)) { $sql = $this->add_table_prefixes($sql); } return parent::query($sql); -- cgit v1.2.3