mirror of
https://github.com/typecho/typecho.git
synced 2025-03-25 04:19:45 +01:00
fix query error
This commit is contained in:
parent
d953e32003
commit
949b487445
@ -506,7 +506,7 @@ class Typecho_Db_Query
|
||||
$adapter = $this->_adapter;
|
||||
|
||||
return preg_replace_callback("/#param:([0-9]+)#/", function ($matches) use ($params, $adapter) {
|
||||
if (isset($params[$matches[1]])) {
|
||||
if (array_key_exists($matches[1], $params)) {
|
||||
return $adapter->quoteValue($params[$matches[1]]);
|
||||
} else {
|
||||
return $matches[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user