]> git.mxchange.org Git - friendica-addons.git/commitdiff
adding test
authorPhilipp Holzer <admin@philipp.info>
Wed, 20 Feb 2019 16:20:16 +0000 (17:20 +0100)
committerPhilipp Holzer <admin@philipp.info>
Wed, 20 Feb 2019 16:27:35 +0000 (17:27 +0100)
rendertime/rendertime.php

index 281059d789a571c3d2b611311c36bd34fdbd0204..5560433e4da09055307906e00ad4cb83597fff3e 100644 (file)
@@ -54,8 +54,10 @@ function rendertime_page_end(&$a, &$o)
                        //round($profiler->get('plugin'), 3)
                        ) . '</div>';
 
-               $o .= '<pre>';
-               $o .= $profiler->getRendertimeString();
-               $o .= '</pre>';
+               if ($profiler->isRendertime()) {
+                       $o .= '<pre>';
+                       $o .= $profiler->getRendertimeString();
+                       $o .= '</pre>';
+               }
        }
 }