[Phpslash-commit] CVS: phpslash-ft/class functions.inc,1.130,1.131
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-02-12 20:45:55
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory sc8-pr-cvs1:/tmp/cvs-serv22354/phpslash-ft/class Modified Files: functions.inc Log Message: str_html shouldn't act on an empty string. Index: functions.inc =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v retrieving revision 1.130 retrieving revision 1.131 diff -C2 -d -r1.130 -r1.131 *** functions.inc 12 Feb 2003 19:10:24 -0000 1.130 --- functions.inc 12 Feb 2003 20:45:51 -0000 1.131 *************** *** 1357,1362 **** function str_html( $string) { ! $ordhtml = "&#" . implode(';&#',unpack('C*char', $string)) .";"; ! return $ordhtml; } --- 1357,1366 ---- function str_html( $string) { ! if($string != '') { ! $ordhtml = "&#" . implode(';&#',unpack('C*char', $string)) .";"; ! return $ordhtml; ! } else { ! return false; ! } } |