From a6f6cdd914e4cec405c59252ad8ac8551d7e344b Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 5 Aug 2008 15:45:35 +0000 Subject: Fixes #204 git-svn-id: https://code.elgg.org/elgg/trunk@1713 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/canvas/layouts/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/canvas/layouts') diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index bcd939dbb..7698e05d0 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -26,7 +26,7 @@ } - if (is_array($widgettypes) && sizeof($widgettypes) > 0 && $owner->canEdit()) { + if (is_array($widgettypes) && sizeof($widgettypes) > 0 && $owner && $owner->canEdit()) { ?> -- cgit v1.2.3