*[misc] use isset var.

This commit is contained in:
songchenxuan
2024-10-16 14:57:55 +08:00
committed by 周鑫
parent ddd61d029d
commit 8df174e1e5
+2 -2
View File
@@ -1561,10 +1561,10 @@ class doc extends control
$libID = (int)$doc->lib;
$lib = $this->doc->getLibByID($libID);
$objectType = $lib->type;
$objectID = (int)zget($lib, $lib->type, 0);
$objectID = (int)zget($lib, $objectType, 0);
if($objectType == 'custom') $objectID = $lib->parent;
$libPairs = $this->doc->getLibs($objectType, '', $doc->lib, $objectID);
$libPairs = $this->doc->getLibs($objectType, '', $libID, $objectID);
if($objectType == 'custom' || $objectType == 'mine') $this->view->spaces = $this->doc->getSubSpacesByType($objectType, true);
$this->docZen->setObjectsForEdit($objectType, $objectID);