diff options
Diffstat (limited to 'engine/lib/database.php')
-rw-r--r-- | engine/lib/database.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php index 7ddf4591b..73d22d28f 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -70,7 +70,7 @@ { global $CONFIG; - $this->table = $CONFIG->prefix . sanitise_string($table); + $this->table = $CONFIG->dbprefix . sanitise_string($table); $this->field = sanitise_string($field); } @@ -136,7 +136,14 @@ { function __construct($table) { - $this->table = sanitise_string($table); + global $CONFIG; + + $this->table = $CONFIG->dbprefix . sanitise_string($table); + } + + function __toString() + { + return $this->table; } } |