summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-27 12:41:52 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-27 12:41:52 -0800
commitfc5d1e5d74124de0dd8de361fe08e83653f960a2 (patch)
treef0e8d8eca0e653771915ceb6e6320ecc1b05f840 /modules
parent31bb09c9b6d420cf77cec47599e937d733652a06 (diff)
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/libraries/MY_Database.php2
1 files changed, 1 insertions, 1 deletions
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);