浏览代码

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

emanuele 13 年之前
父节点
当前提交
6f245ac17a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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']];