From f13e98a4df583d9952df04712e40cb809de1014e Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Mon, 21 Oct 2024 17:29:29 +0800 Subject: [PATCH] *[misc] remove useless code. --- 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 fd608f4e94..e7f58e5e18 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -51,7 +51,7 @@ class docModel extends model public function getObjectIDByLib($lib, $libType = '') { if(empty($libType)) $libType = $lib->type; - $objectID = ($libType == 'custom' || $libType == 'mine') ? $lib->parent : (int)zget($lib, $libType, 0); + $objectID = ($libType == 'custom' || $libType == 'mine') ? $lib->parent : zget($lib, $libType, 0); return (int)$objectID; }