From 44ab88e2a5d4b3fe5899d7dfdff9c4fd5810bacb Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 11 Dec 2023 10:16:17 +0800 Subject: [PATCH] * Handle error where $this->app->rawParams do not exist. --- module/doc/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index 76ecaea089..6d0051018c 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -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)