From 3f4f215ce2d2ad78c42defeb3299635bdca92ad5 Mon Sep 17 00:00:00 2001 From: mohrt Date: Mon, 3 Mar 2003 20:43:29 +0000 Subject: [PATCH] fixed PHP notice --- NEWS | 1 + libs/plugins/function.popup.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 1d1feb78..43381bab 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ + - fixed notice in popup function (Nagger, Monte) - fix "once" var compiling for include_php (Monte) - added nl2br modifier to distribution (Monte) - added html_image to distribution (Monte) diff --git a/libs/plugins/function.popup.php b/libs/plugins/function.popup.php index 74804a72..d4fde6d8 100644 --- a/libs/plugins/function.popup.php +++ b/libs/plugins/function.popup.php @@ -19,7 +19,7 @@ function smarty_function_popup($params, &$smarty) 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 (!empty($caption)) { $retval .= ",CAPTION,'".str_replace("'","\'",$caption)."'"; } if (!empty($fgcolor)) { $retval .= ",FGCOLOR,'$fgcolor'"; }