mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Create a 'data' field even if there are no results, to prevent warnings
This commit is contained in:
parent
70c2bfe5df
commit
686cfc3478
1 changed files with 4 additions and 1 deletions
|
|
@ -290,6 +290,7 @@ class DB
|
|||
if (!$output->toBool())
|
||||
{
|
||||
$output->page_navigation = new \PageHandler(0, 0, 0);
|
||||
$output->data = null;
|
||||
$this->_query_id = '';
|
||||
$this->_total_time += (microtime(true) - $start_time);
|
||||
return $output;
|
||||
|
|
@ -300,7 +301,7 @@ class DB
|
|||
{
|
||||
$output->add('_query', $query_string);
|
||||
$output->add('_elapsed_time', '0.00000');
|
||||
$output->page_navigation = new \PageHandler(0, 0, 0);
|
||||
$output->data = ($result_type === 'array') ? [] : null;
|
||||
$this->_query_id = '';
|
||||
$this->_total_time += (microtime(true) - $start_time);
|
||||
return $output;
|
||||
|
|
@ -331,6 +332,7 @@ class DB
|
|||
$output->add('_query', $query_string);
|
||||
$output->add('_elapsed_time', '0.00000');
|
||||
$output->page_navigation = new \PageHandler(0, 0, 0);
|
||||
$output->data = null;
|
||||
$this->_query_id = '';
|
||||
$this->_total_time += (microtime(true) - $start_time);
|
||||
return $output;
|
||||
|
|
@ -350,6 +352,7 @@ class DB
|
|||
$output->add('_query', $query_string);
|
||||
$output->add('_elapsed_time', '0.00000');
|
||||
$output->page_navigation = new \PageHandler(0, 0, 0);
|
||||
$output->data = null;
|
||||
$this->_query_id = '';
|
||||
$this->_total_time += (microtime(true) - $start_time);
|
||||
return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue