BUG 7104 Fix Bug empty button in plugin Enterprise Edition.

This commit is contained in:
Hector Cortez
2011-11-24 16:31:59 -04:00
parent 4ac0e6ec7c
commit 8effc490e1

View File

@@ -400,7 +400,7 @@ class propelTable
$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])) == '')
if ((trim($value[0])) == '' || trim($value[1]) == '')
$this->tpl->assign( "value" , "&nbsp;" );
// $this->tpl->assign( "value" , (preg_match('^[[:space:]]^', $value) && (substr($fieldName,0,3)!="PRO"))? str_ireplace(" ","&nbsp;",$htmlField):$htmlField );
} else {