diff --git a/ecrire/public/debusquer.php b/ecrire/public/debusquer.php index f42d6d63629ca495773919a3ffe2df97272ef41c..ba94a1ba31969b09033f5b5c17507acd493c0aa2 100644 --- a/ecrire/public/debusquer.php +++ b/ecrire/public/debusquer.php @@ -701,12 +701,14 @@ function debusquer_navigation_squelettes($self) { if (!empty($GLOBALS['debug_objets']['profile'][$sourcefile])) { $t = debusquer_format_millisecondes($GLOBALS['debug_objets']['profile'][$sourcefile]); $temps = _T('zbug_profile', ['time' => $t]); - if (!empty($GLOBALS['debug_objets']['profile_nb'][$sourcefile])) { + if (!empty($GLOBALS['debug_objets']['profile_nb'][$sourcefile]) + && ($GLOBALS['debug_objets']['profile_nb'][$sourcefile] > 1)) { $temps .= ' | ' . _T('zbug_profile_nb', ['nb' => $GLOBALS['debug_objets']['profile_nb'][$sourcefile]]); - } - if (!empty($GLOBALS['debug_objets']['profile_total'][$sourcefile])) { - $t = debusquer_format_millisecondes($GLOBALS['debug_objets']['profile_total'][$sourcefile]); - $temps .= ' | ' . _T('zbug_profile_total', ['time' => $t]); + + if (!empty($GLOBALS['debug_objets']['profile_total'][$sourcefile])) { + $t = debusquer_format_millisecondes($GLOBALS['debug_objets']['profile_total'][$sourcefile]); + $temps .= ' | ' . _T('zbug_profile_total', ['time' => $t]); + } } }