diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php
index c54be2d011..f8e747f050 100644
--- a/phpgwapi/inc/class.html.inc.php
+++ b/phpgwapi/inc/class.html.inc.php
@@ -111,7 +111,7 @@ class html
{
if (!$this->wz_tooltip_included)
{
- if (strpos('wz_tooltip',$GLOBALS['egw_info']['flags']['need_footer'])===false)
+ if (strpos($GLOBALS['egw_info']['flags']['need_footer'],'wz_tooltip')===false)
{
$GLOBALS['egw_info']['flags']['need_footer'] .= ''."\n";
}