fixed PHP notice

This commit is contained in:
mohrt
2003-03-03 20:43:29 +00:00
parent 34b460e0d5
commit 3f4f215ce2
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- fixed notice in popup function (Nagger, Monte)
- fix "once" var compiling for include_php (Monte) - fix "once" var compiling for include_php (Monte)
- added nl2br modifier to distribution (Monte) - added nl2br modifier to distribution (Monte)
- added html_image to distribution (Monte) - added html_image to distribution (Monte)

View File

@@ -19,7 +19,7 @@ function smarty_function_popup($params, &$smarty)
if (empty($trigger)) { $trigger = "onMouseOver"; } if (empty($trigger)) { $trigger = "onMouseOver"; }
$retval .= $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\''; $retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
if ($sticky) { $retval .= ",STICKY"; } if ($sticky) { $retval .= ",STICKY"; }
if (!empty($caption)) { $retval .= ",CAPTION,'".str_replace("'","\'",$caption)."'"; } if (!empty($caption)) { $retval .= ",CAPTION,'".str_replace("'","\'",$caption)."'"; }
if (!empty($fgcolor)) { $retval .= ",FGCOLOR,'$fgcolor'"; } if (!empty($fgcolor)) { $retval .= ",FGCOLOR,'$fgcolor'"; }