Browse Source

Custom profile fields named 0 are now visible on topic view [Bug 4809]

emanuele 13 years ago
parent
commit
6f245ac17a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Load.php

+ 1 - 1
Sources/Load.php

@@ -1189,7 +1189,7 @@ function loadMemberContext($user, $display_custom_fields = false)
 
 		foreach ($context['display_fields'] as $custom)
 		{
-			if (empty($custom['title']) || empty($profile['options'][$custom['colname']]))
+			if (!isset($custom['title']) || trim($custom['title']) == '' || empty($profile['options'][$custom['colname']]))
 				continue;
 
 			$value = $profile['options'][$custom['colname']];