mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Fix the warning error in php 7.2 of the array error. use to countobj function.
This commit is contained in:
parent
b180270e08
commit
66568474bc
2 changed files with 2 additions and 2 deletions
|
|
@ -765,7 +765,7 @@ class documentModel extends document
|
|||
*/
|
||||
function _arrangeCategory(&$document_category, $list, $depth)
|
||||
{
|
||||
if(!count($list)) return;
|
||||
if(!countobj($list)) return;
|
||||
$idx = 0;
|
||||
$list_order = array();
|
||||
foreach($list as $key => $val)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue