Added is_object()

This commit is contained in:
abraar
2010-12-06 15:13:43 +00:00
parent cec620ff6b
commit 9e5a057c6c
29 changed files with 50 additions and 49 deletions

View File

@@ -395,7 +395,7 @@ class propelTable
if(is_object($value)){
$value = '';
}
$this->tpl->assign( "value" , (eregi('^[[:space:]]', $value) && (substr($fieldName,0,3)!="PRO"))? str_ireplace(" "," ",$htmlField):$htmlField );
$this->tpl->assign( "value" , (preg_match('^[[:space:]]^', $value) && (substr($fieldName,0,3)!="PRO"))? str_ireplace(" "," ",$htmlField):$htmlField );
}
return $this->fields[$r]['Type'];
}