@@ -84,7 +84,7 @@ |
||
| 84 | 84 | if($hidden === null) $hidden = array(); |
| 85 | 85 | } |
| 86 | 86 | $force = json_decode($this->appConfig->getAppValue('force')); |
| 87 | - if($force === null) $force = false; |
|
| 87 | + if($force === null) $force = false; |
|
| 88 | 88 | return new TemplateResponse( |
| 89 | 89 | $this->appName, |
| 90 | 90 | 'admin', |
@@ -55,12 +55,12 @@ discard block |
||
| 55 | 55 | // Private API call |
| 56 | 56 | $navigation = $this->navigationManager->getAll(); |
| 57 | 57 | $order = json_decode($this->appConfig->getAppValue('order')); |
| 58 | - if($order === null) $order = array(); |
|
| 58 | + if ($order === null) $order = array(); |
|
| 59 | 59 | $nav = $this->util->matchOrder($navigation, $order); |
| 60 | 60 | $hidden = json_decode($this->appConfig->getAppValue('hidden')); |
| 61 | - if($hidden === null) $hidden = array(); |
|
| 61 | + if ($hidden === null) $hidden = array(); |
|
| 62 | 62 | $force = json_decode($this->appConfig->getAppValue('force')); |
| 63 | - if($force === null) $force = false; |
|
| 63 | + if ($force === null) $force = false; |
|
| 64 | 64 | return new TemplateResponse( |
| 65 | 65 | $this->appName, |
| 66 | 66 | 'admin', |
@@ -73,18 +73,18 @@ discard block |
||
| 73 | 73 | // Private API call |
| 74 | 74 | $navigation = $this->navigationManager->getAll(); |
| 75 | 75 | $order = json_decode($this->appConfig->getUserValue('order', $this->userId)); |
| 76 | - if($order === null){ |
|
| 76 | + if ($order === null) { |
|
| 77 | 77 | $order = json_decode($this->appConfig->getAppValue('order')); |
| 78 | - if($order === null) $order = array(); |
|
| 78 | + if ($order === null) $order = array(); |
|
| 79 | 79 | } |
| 80 | 80 | $nav = $this->util->matchOrder($navigation, $order); |
| 81 | - $hidden = json_decode($this->appConfig->getUserValue('hidden',$this->userId)); |
|
| 82 | - if($hidden === null){ |
|
| 81 | + $hidden = json_decode($this->appConfig->getUserValue('hidden', $this->userId)); |
|
| 82 | + if ($hidden === null) { |
|
| 83 | 83 | $hidden = json_decode($this->appConfig->getAppValue('hidden')); |
| 84 | - if($hidden === null) $hidden = array(); |
|
| 84 | + if ($hidden === null) $hidden = array(); |
|
| 85 | 85 | } |
| 86 | 86 | $force = json_decode($this->appConfig->getAppValue('force')); |
| 87 | - if($force === null) $force = false; |
|
| 87 | + if ($force === null) $force = false; |
|
| 88 | 88 | return new TemplateResponse( |
| 89 | 89 | $this->appName, |
| 90 | 90 | 'admin', |
@@ -55,12 +55,18 @@ discard block |
||
| 55 | 55 | // Private API call |
| 56 | 56 | $navigation = $this->navigationManager->getAll(); |
| 57 | 57 | $order = json_decode($this->appConfig->getAppValue('order')); |
| 58 | - if($order === null) $order = array(); |
|
| 58 | + if($order === null) { |
|
| 59 | + $order = array(); |
|
| 60 | + } |
|
| 59 | 61 | $nav = $this->util->matchOrder($navigation, $order); |
| 60 | 62 | $hidden = json_decode($this->appConfig->getAppValue('hidden')); |
| 61 | - if($hidden === null) $hidden = array(); |
|
| 63 | + if($hidden === null) { |
|
| 64 | + $hidden = array(); |
|
| 65 | + } |
|
| 62 | 66 | $force = json_decode($this->appConfig->getAppValue('force')); |
| 63 | - if($force === null) $force = false; |
|
| 67 | + if($force === null) { |
|
| 68 | + $force = false; |
|
| 69 | + } |
|
| 64 | 70 | return new TemplateResponse( |
| 65 | 71 | $this->appName, |
| 66 | 72 | 'admin', |
@@ -75,16 +81,22 @@ discard block |
||
| 75 | 81 | $order = json_decode($this->appConfig->getUserValue('order', $this->userId)); |
| 76 | 82 | if($order === null){ |
| 77 | 83 | $order = json_decode($this->appConfig->getAppValue('order')); |
| 78 | - if($order === null) $order = array(); |
|
| 84 | + if($order === null) { |
|
| 85 | + $order = array(); |
|
| 86 | + } |
|
| 79 | 87 | } |
| 80 | 88 | $nav = $this->util->matchOrder($navigation, $order); |
| 81 | 89 | $hidden = json_decode($this->appConfig->getUserValue('hidden',$this->userId)); |
| 82 | 90 | if($hidden === null){ |
| 83 | 91 | $hidden = json_decode($this->appConfig->getAppValue('hidden')); |
| 84 | - if($hidden === null) $hidden = array(); |
|
| 92 | + if($hidden === null) { |
|
| 93 | + $hidden = array(); |
|
| 94 | + } |
|
| 85 | 95 | } |
| 86 | 96 | $force = json_decode($this->appConfig->getAppValue('force')); |
| 87 | - if($force === null) $force = false; |
|
| 97 | + if($force === null) { |
|
| 98 | + $force = false; |
|
| 99 | + } |
|
| 88 | 100 | return new TemplateResponse( |
| 89 | 101 | $this->appName, |
| 90 | 102 | 'admin', |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $order_user = $this->appConfig->getUserValue('order', $this->userId); |
| 40 | 40 | $order_default = $this->appConfig->getAppValue('order'); |
| 41 | 41 | $forced_order = json_decode($this->appConfig->getAppValue('force')) ?? false; |
| 42 | - if ($order_user !== null && $order_user !== "" && !($forced_order)) { |
|
| 42 | + if ($order_user !== null && $order_user !== "" && !($forced_order)) { |
|
| 43 | 43 | $order = $order_user; |
| 44 | 44 | } else { |
| 45 | 45 | $order = $order_default; |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $hidden_user = $this->appConfig->getUserValue('hidden', $this->userId); |
| 73 | 73 | $hidden_default = $this->appConfig->getAppValue('hidden'); |
| 74 | 74 | $forced_order = json_decode($this->appConfig->getAppValue('force')) ?? false; |
| 75 | - if ($hidden_user !== null && $hidden_user !== "" && !($forced_order)) { |
|
| 75 | + if ($hidden_user !== null && $hidden_user !== "" && !($forced_order)) { |
|
| 76 | 76 | $hidden = $hidden_user; |
| 77 | 77 | } else { |
| 78 | 78 | $hidden = $hidden_default; |