mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Clean up usage of is_countable()
This commit is contained in:
parent
67a9aba082
commit
494e0ee028
8 changed files with 10 additions and 14 deletions
|
|
@ -902,7 +902,7 @@ class DB
|
|||
*/
|
||||
public function _dbInfoExists()
|
||||
{
|
||||
return ($this->master_db && (is_countable($this->slave_db) && count($this->slave_db)));
|
||||
return $this->master_db ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -149,8 +149,8 @@ class Query extends BaseObject
|
|||
|
||||
function setColumnList($columnList)
|
||||
{
|
||||
if (!is_array($this->columnList)) return;
|
||||
$this->columnList = $columnList;
|
||||
if (!is_countable($this->columnList)) return;
|
||||
|
||||
if(count($this->columnList) > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue