mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-27 10:14:32 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user