From 67f88f01772a433ed081903a7a036875f3559c52 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 23 Jun 2022 09:50:44 +0800 Subject: [PATCH] * Fix bug. --- module/doc/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index 23a850d051..31685d0609 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2792,7 +2792,7 @@ EOT; { $libs = $this->getLibsByObject('custom', 0, '', $appendLib); $this->app->rawMethod = 'custom'; - if($libID == 0) $libID = key($libs); + if($libID == 0) $libID = reset($libs)->id; $this->lang->modulePageNav = $this->select($type, $objects, $objectID, $libs, $libID); $object = new stdclass();