PHP7.2 count 관련 워닝에러를 고침.

This commit is contained in:
BJRambo 2018-01-24 16:26:57 +09:00
parent 8dd447bc15
commit f2d2867069
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ class TableTag
function isJoinTable() function isJoinTable()
{ {
$joinList = array('left join' => 1, 'left outer join' => 1, 'right join' => 1, 'right outer join' => 1); $joinList = array('left join' => 1, 'left outer join' => 1, 'right join' => 1, 'right outer join' => 1);
if(isset($joinList[$this->join_type]) && count($this->conditions)) if(isset($joinList[$this->join_type]) && countobj($this->conditions))
{ {
return true; return true;
} }

View file

@ -92,7 +92,7 @@ class moduleAdminModel extends module
$grantList->access = new stdClass(); $grantList->access = new stdClass();
$grantList->access->title = lang('grant_access'); $grantList->access->title = lang('grant_access');
$grantList->access->default = 'guest'; $grantList->access->default = 'guest';
if(count($grantList)) if(countobj($grantList))
{ {
foreach($grantList as $key => $val) foreach($grantList as $key => $val)
{ {