From 7a0e5b0db2a2b69ee227a3436f83251764e3233b Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 23 May 2008 16:45:53 +0000 Subject: Similar profile fix to previous git-svn-id: https://code.elgg.org/elgg/trunk@704 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/user/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/profile/views') diff --git a/mod/profile/views/default/user/user.php b/mod/profile/views/default/user/user.php index e11c463ca..efa19f0d4 100644 --- a/mod/profile/views/default/user/user.php +++ b/mod/profile/views/default/user/user.php @@ -32,8 +32,8 @@ 0) - foreach($vars['profile'] as $shortname => $valtype) { + if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0) + foreach($vars['config']->profile as $shortname => $valtype) { if ($shortname != "description") { $value = $vars['entity']->$shortname; if (!empty($value)) { -- cgit v1.2.3