Просмотр исходного кода

and set an empty array if the user doesn't have any profile fields yet

Signed-off-by: Suki <[email protected]>
Suki 11 лет назад
Родитель
Сommit
5af2d19afd
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Sources/Load.php

+ 3 - 0
Sources/Load.php

@@ -1280,7 +1280,10 @@ function loadMemberCustomFields($users)
 		foreach ($context['display_fields'] as $custom)
 		{
 			if (!isset($custom['title']) || trim($custom['title']) == '' || empty($temp[$user]['options'][$custom['colname']]))
+			{
 				$return[$user] = array();
+				$memberContext[$user]['custom_fields'] = array();
+			}
 
 			else
 			{