mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Fixed regexp bug in the Database class
This commit is contained in:
parent
91c5ca45ae
commit
ba5259b36c
@ -254,7 +254,7 @@ Class Database{
|
||||
*/
|
||||
public function query($query, $values = NULL, $params = array()){
|
||||
try{
|
||||
$query = preg_replace("/\{(\S+)\}/", $this->tablesPrefix."$1", $query);
|
||||
$query = preg_replace("/\{(\w+)\}/", $this->tablesPrefix."$1", $query);
|
||||
|
||||
$query_key = md5($query);
|
||||
if (! array_key_exists($query_key, $this->preparedStatements)) {
|
||||
|
Loading…
Reference in New Issue
Block a user