Sfoglia il codice sorgente

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

emanuele 13 anni fa
parent
commit
6f245ac17a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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']];