BUG 7898 problem solved with empty users after importing

This commit is contained in:
Alvaro Campos
2011-10-24 10:45:52 -04:00
parent 29dc5beced
commit d119d302e0

View File

@@ -397,10 +397,10 @@ class propelTable
$value = '';
}
// checking if the value variable is a html field, a html tag content can't contain   as white spaces
$testValue = preg_match( "/<a ?.*>(.*)<\/a>/i", $htmlField, $value);
$this->tpl->assign( "value" , $htmlField );
if ($testValue>0 && (isset($value[1]) && strlen(trim($value[1])) == 0 )) {
if ((trim($value[0])) == '')
$this->tpl->assign( "value" , "&nbsp;" );
// $this->tpl->assign( "value" , (preg_match('^[[:space:]]^', $value) && (substr($fieldName,0,3)!="PRO"))? str_ireplace(" ","&nbsp;",$htmlField):$htmlField );
} else {