replaced PHP 5.5 boolval function with (bool) cast

This commit is contained in:
Ralf Becker 2014-06-12 10:21:33 +00:00
parent 95b89a0c9f
commit e9295a5861

View File

@ -173,7 +173,7 @@ class egw_link extends solink
// for performance reasons, we do it only once / cache it in the session // for performance reasons, we do it only once / cache it in the session
if (!($search_link_hooks = $GLOBALS['egw']->session->appsession('search_link_hooks','phpgwapi'))) if (!($search_link_hooks = $GLOBALS['egw']->session->appsession('search_link_hooks','phpgwapi')))
{ {
$search_link_hooks = $GLOBALS['egw']->hooks->process('search_link',array(), boolval($GLOBALS['egw_info']['flags']['async-service'])); $search_link_hooks = $GLOBALS['egw']->hooks->process('search_link',array(), (bool)$GLOBALS['egw_info']['flags']['async-service']);
$GLOBALS['egw']->session->appsession('search_link_hooks','phpgwapi',$search_link_hooks); $GLOBALS['egw']->session->appsession('search_link_hooks','phpgwapi',$search_link_hooks);
} }
if (is_array($search_link_hooks)) if (is_array($search_link_hooks))