* Handle error where $this->app->rawParams do not exist.

This commit is contained in:
tianshujie
2023-12-11 10:16:17 +08:00
parent b1685b7933
commit 44ab88e2a5
+2 -1
View File
@@ -2214,7 +2214,8 @@ class docModel extends model
if($type != 'project') $libTree = array_values($libTree[$type]);
if($type == 'mine')
{
$libType = $this->app->rawMethod == 'view' ? 'mine' : zget($this->app->rawParams, 'type', '');
$libType = isset($this->app->rawParams['type']) ? $this->app->rawParams['type'] : '';
$libType = $this->app->rawMethod == 'view' ? 'mine' : $libType;
$mineMethods = array('mine' => 'myLib', 'view' => 'myView', 'collect' => 'myCollection', 'createdBy' => 'myCreation', 'editedBy' => 'myEdited');
$libTree = array();
foreach($mineMethods as $type => $mineMethod)