mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Merge branch 'develop' into next
This commit is contained in:
commit
f01fb9ae42
11 changed files with 41 additions and 22 deletions
|
|
@ -499,7 +499,7 @@ class Context
|
|||
{
|
||||
$config = Rhymix\Framework\Config::getAll();
|
||||
}
|
||||
if (!count($config))
|
||||
if (!is_array($config) || !count($config))
|
||||
{
|
||||
self::$_instance->db_info = self::$_instance->db_info ?: new stdClass;
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -902,7 +902,7 @@ class DB
|
|||
*/
|
||||
public function _dbInfoExists()
|
||||
{
|
||||
return ($this->master_db && count($this->slave_db));
|
||||
return $this->master_db ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -149,7 +149,9 @@ class Query extends BaseObject
|
|||
|
||||
function setColumnList($columnList)
|
||||
{
|
||||
if (!is_array($this->columnList)) return;
|
||||
$this->columnList = $columnList;
|
||||
|
||||
if(count($this->columnList) > 0)
|
||||
{
|
||||
$selectColumns = array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue