* Compatible php5.3.
This commit is contained in:
@@ -48,9 +48,7 @@ class docModel extends model
|
||||
->andWhere('type')->eq('api')
|
||||
->orderBy('id_desc')
|
||||
->fetchAll('id');
|
||||
$libs = array_filter($libs, function ($value) {
|
||||
return $this->checkPrivLib($value);
|
||||
});
|
||||
$libs = array_filter($libs, array($this, 'checkPrivLib'));
|
||||
return $libs;
|
||||
}
|
||||
|
||||
@@ -2453,7 +2451,7 @@ EOT;
|
||||
|
||||
if(!isset($treeMenu[$module->parent])) $treeMenu[$module->parent] = '';
|
||||
|
||||
$class = ['catalog'];
|
||||
$class = array('catalog');
|
||||
if($treeMenu[$module->id])
|
||||
{
|
||||
array_push($class, 'closed');
|
||||
|
||||
Reference in New Issue
Block a user