Skip to content

Commit

Permalink
Merge pull request #1510 from fiammybe/1495-countable-to-array-fix-ic…
Browse files Browse the repository at this point in the history
…msmoduleobject

bool to countable in module object
  • Loading branch information
MekDrop authored Sep 17, 2023
2 parents 3bb48ab + cafacdf commit 9d0f554
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/libraries/icms/module/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ public function search($term = '', $andor = 'AND', $limit = 0, $offset = 0, $use
* @return datatype description
*/
public function displayAdminMenu($currentoption = 0, $breadcrumb = '', $submenus = false, $currentsub = -1) {
if(!is_array($submenus))
{
$submenus=[];
}
icms_loadLanguageFile(icms::$module->getVar('dirname'), 'modinfo');
icms_loadLanguageFile(icms::$module->getVar('dirname'), 'admin');
$tpl = new icms_view_Tpl();
Expand Down

0 comments on commit 9d0f554

Please sign in to comment.