mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
is_countable?!
This commit is contained in:
parent
43fe12af13
commit
a641b3103a
10 changed files with 39 additions and 14 deletions
|
|
@ -500,7 +500,7 @@ class Context
|
|||
{
|
||||
$config = Rhymix\Framework\Config::getAll();
|
||||
}
|
||||
if (!count($config))
|
||||
if (!is_countable($config) || !count($config))
|
||||
{
|
||||
self::$_instance->db_info = self::$_instance->db_info ?: new stdClass;
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -150,6 +150,8 @@ class Query extends BaseObject
|
|||
function setColumnList($columnList)
|
||||
{
|
||||
$this->columnList = $columnList;
|
||||
if (!is_countable($this->columnList)) return;
|
||||
|
||||
if(count($this->columnList) > 0)
|
||||
{
|
||||
$selectColumns = array();
|
||||
|
|
|
|||
|
|
@ -60,6 +60,10 @@ class JSONDisplayHandler
|
|||
*/
|
||||
protected static function _isNumericArray($array)
|
||||
{
|
||||
if (!is_countable($array))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!is_array($array) || !count($array))
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue