mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Be a little more lenient on invalid querystrings passed to deprecated method
This commit is contained in:
parent
7b470b7609
commit
4cf8fc6eb5
1 changed files with 3 additions and 3 deletions
|
|
@ -1297,9 +1297,9 @@ class DB
|
|||
*
|
||||
* @deprecated
|
||||
* @param string $query_string
|
||||
* @return Helpers\DBStmtHelper
|
||||
* @return ?Helpers\DBStmtHelper
|
||||
*/
|
||||
public function _query($query_string): Helpers\DBStmtHelper
|
||||
public function _query($query_string): ?Helpers\DBStmtHelper
|
||||
{
|
||||
if ($this->_debug_comment)
|
||||
{
|
||||
|
|
@ -1308,7 +1308,7 @@ class DB
|
|||
|
||||
$this->_last_stmt = null;
|
||||
$this->_last_stmt = $this->_handle->query(strval($query_string));
|
||||
return $this->_last_stmt;
|
||||
return $this->_last_stmt ?: null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue