Fix the warning error in php 7.2 of the array error. use to countobj function.

This commit is contained in:
BJRambo 2018-01-24 15:48:25 +09:00
parent b180270e08
commit 66568474bc
2 changed files with 2 additions and 2 deletions

View file

@ -816,7 +816,7 @@ class moduleModel extends module
$xml_obj = XmlParser::loadXmlFile($xml_file); // /< Read xml file and convert it to xml object
if(!count($xml_obj->module)) return; // /< Error occurs if module tag doesn't included in the xml
if(!countobj($xml_obj->module)) return; // /< Error occurs if module tag doesn't included in the xml
$grants = $xml_obj->module->grants->grant; // /< Permission information
$permissions = $xml_obj->module->permissions->permission; // /< Acting permission