diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/extender.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/extender.php b/engine/lib/extender.php index c2d4bcc96..7cbc647af 100644 --- a/engine/lib/extender.php +++ b/engine/lib/extender.php @@ -276,10 +276,15 @@ function can_edit_extender($extender_id, $type, $user_guid = 0) {
if ($user_guid == 0) {
- $user = $_SESSION['user'];
+ if (isset($_SESSION['user'])) {
+ $user = $_SESSION['user'];
+ } else {
+ $user = null;
+ }
} else {
$user = get_entity($user_guid);
}
+
$functionname = "get_{$type}";
if (is_callable($functionname)) {
$extender = $functionname($extender_id);
|