Skip to content

Commit 16b782f

Browse files
committed
Update application.class.php
1 parent 894b629 commit 16b782f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: modules/application.class.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,17 @@ function sortFiles($a, $b)
192192
}
193193

194194
if ($this->action != 'apps') {
195-
if ($this->action && (preg_match('/^app_\w+$/is', $this->action) || $this->action == 'xray')) {
195+
if (isset($this->action) && $this->action &&
196+
(preg_match('/^app_\w+$/is', $this->action) || $this->action == 'xray')) {
196197
$out['APP_ACTION'] = 1;
197198
}
198199

199-
if (isset($this->app_action) && $this->action!='') {
200+
if (isset($this->app_action) && $this->app_action && $this->action!='') {
200201
$out['APP_ACTION'] = 1;
201202
}
202203
}
203204

204-
if (isset($this->app_action) && $this->app_action == 'panel') {
205+
if (isset($this->app_action) && $this->app_action == 'panel') {
205206
$this->redirect(ROOTHTML . 'admin.php');
206207
}
207208

0 commit comments

Comments
 (0)