Skip to content

Commit

Permalink
Fix a bug where we weren't replacing table names when there's no
Browse files Browse the repository at this point in the history
prefix.  This is wrong because even when there's no prefix we have to
get rid of the {curly} braces.
  • Loading branch information
bharat committed Dec 27, 2009
1 parent 31bb09c commit fc5d1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/libraries/MY_Database.php
Expand Up @@ -39,7 +39,7 @@ protected function __construct(array $config) {
* 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);
Expand Down

0 comments on commit fc5d1e5

Please sign in to comment.