*[misc] remove useless code.

This commit is contained in:
songchenxuan
2024-10-21 17:31:09 +08:00
committed by 周鑫
parent 867413c979
commit f13e98a4df
+1 -1
View File
@@ -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;
}