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.
This commit is contained in:
Bharat Mediratta
2009-12-27 12:41:52 -08:00
parent 31bb09c9b6
commit fc5d1e5d74
+1 -1
View File
@@ -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);