if nofooter is set as flag, then do not show footer, return immediately

This commit is contained in:
Klaus Leithoff 2010-06-10 13:57:25 +00:00
parent 715083765e
commit 022b8bb391

View File

@ -568,6 +568,8 @@ class jdots_framework extends egw_framework
function footer($no_framework=true) function footer($no_framework=true)
{ {
static $footer_done; static $footer_done;
if (!(!isset($GLOBALS['egw_info']['flags']['nofooter']) || !$GLOBALS['egw_info']['flags']['nofooter'])) return;
//error_log(__METHOD__.array2string(function_backtrace()));
if ($footer_done++) return; // prevent multiple footers, not sure we still need this (RalfBecker) if ($footer_done++) return; // prevent multiple footers, not sure we still need this (RalfBecker)
if($no_framework && $GLOBALS['egw_info']['user']['preferences']['common']['show_generation_time']) if($no_framework && $GLOBALS['egw_info']['user']['preferences']['common']['show_generation_time'])