diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index 336a0c0bdc..7c552eaeae 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -191,7 +191,7 @@ function overlib_link($url, $text, $contents, $class)
if ($config['web_mouseover'] === FALSE) {
$output .= ">";
} else {
- $output .= " onmouseover=\"return overlib('".$contents."'".$config['overlib_defaults'].", WRAP,HAUTO,VAUTO); jQuery.event.trigger(\"ajaxStop\"); \" onmouseout=\"return nd();\">";
+ $output .= " onmouseover=\"var ret = overlib('".$contents."'".$config['overlib_defaults'].", WRAP,HAUTO,VAUTO); jQuery.event.trigger(\"ajaxStop\"); return ret;\" onmouseout=\"return nd();\">";
}
$output .= $text."";