Skip to content

Commit

Permalink
Attempt fix for issue #1497 in PagePermissions affecting ProcessUser …
Browse files Browse the repository at this point in the history
…producing a PHP error
  • Loading branch information
ryancramerdesign committed Nov 9, 2015
1 parent 33d8a78 commit bbcdc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wire/modules/PagePermissions.module
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class PagePermissions extends WireData implements Module {
public function userEditable(Page $page) {

if($page->className() != 'User') $page = $this->wire('users')->get($page->id);
if($page instanceof NullPage) return false;
if(!$page || $page instanceof NullPage) return false;

$user = $this->wire('user');

Expand Down

0 comments on commit bbcdc47

Please sign in to comment.