diff --git a/lib/zin/wg/docapp/v1.php b/lib/zin/wg/docapp/v1.php index 4fd84b7c04..a91b11edfb 100644 --- a/lib/zin/wg/docapp/v1.php +++ b/lib/zin/wg/docapp/v1.php @@ -313,10 +313,12 @@ class docApp extends wg $zentaoListMenu = $hasZentaoSlashMenu ? $this->getZentaoListMenu() : array(); - $moreMenus = array_merge([array( - 'text' => $lang->doc->zentaoData, - 'type' => 'heading', - )], $this->convertZentaoListMenu($zentaoListMenu)); + $moreMenus = $zentaoListMenu + ? array_merge([array( + 'text' => $lang->doc->zentaoData, + 'type' => 'heading', + )], $this->convertZentaoListMenu($zentaoListMenu)) + : array(); return zui::docApp (