Explorar o código

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

Signed-off-by: Suki <[email protected]>
Suki %!s(int64=11) %!d(string=hai) anos
pai
achega
5af2d19afd
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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
 			{