Skip to content

Commit

Permalink
[FIX] Fix Undefined Property Notice
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWeinert committed Dec 9, 2020
1 parent fbfb4a8 commit 7b0474a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/system/papaya_editmodules.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ function initialize() {
} else {
$this->loadModulesList();
if (
isset($this->modules) &&
is_array($this->modules) &&
count($this->modules) > 0
) {
Expand Down Expand Up @@ -188,8 +189,11 @@ function execute() {
} elseif (method_exists($this->_moduleInstance, 'execModule')) {
$this->_moduleInstance->execModule();
}
} elseif (isset($this->modules) &&
is_array($this->modules) && count($this->modules) > 0) {
} elseif (
isset($this->modules) &&
is_array($this->modules) &&
count($this->modules) > 0
) {
$administrationUser = $this->papaya()->administrationUser;
$currentUserModules = array_intersect(
$administrationUser->userModules, array_keys($this->modules)
Expand Down

0 comments on commit 7b0474a

Please sign in to comment.