Permalink
Browse files

fix(entities): fix php notice when editing metadata while not-logged-in

Fixes #9256
  • Loading branch information...
beck24 committed Dec 23, 2015
1 parent a7d7612 commit 64bb369fd83be95fa46fc41aa4849d747ea03437
Showing with 3 additions and 1 deletion.
  1. +3 −1 engine/classes/ElggEntity.php
@@ -1092,7 +1092,9 @@ public function canEditMetadata($metadata = null, $user_guid = 0) {
}
} else {
$user = _elgg_services()->session->getLoggedInUser();
$user_guid = $user->guid;
if ($user) {
$user_guid = $user->guid;
}
}
$return = null;

0 comments on commit 64bb369

Please sign in to comment.