Clean up usage of is_countable()

This commit is contained in:
Kijin Sung 2020-06-08 20:35:54 +09:00
parent 67a9aba082
commit 494e0ee028
8 changed files with 10 additions and 14 deletions

View file

@ -967,8 +967,7 @@ class moduleController extends module
{
$this->deleteModuleExtraVars($module_srl);
getDestroyXeVars($obj);
if(!$obj || !is_countable($obj)) return;
if(!count($obj)) return;
if(!$obj || !is_countable($obj) || !count($obj)) return;
foreach($obj as $key => $val)
{