aboutsummaryrefslogtreecommitdiff
path: root/scripts/diag.php
diff options
context:
space:
mode:
authorpmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360>2004-12-28 22:52:52 +0000
committerpmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360>2004-12-28 22:52:52 +0000
commit25ccf56d23561df886455a28c56dd01da65e6c23 (patch)
treecc8a88c5e89a88482ddf3963be0eb1e7a69fafe0 /scripts/diag.php
parent63e2269e4d4fdff12ad9bed7817051cb21fb60ef (diff)
downloadpmwiki.svn-25ccf56d23561df886455a28c56dd01da65e6c23.tar.bz2
Fixed bug in StopWatch() function for empty stopwatches.
git-svn-id: svn://pmwiki.org/trunk/pmwiki@488 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/diag.php')
-rw-r--r--scripts/diag.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/diag.php b/scripts/diag.php
index a894d84d..3b6f5be9 100644
--- a/scripts/diag.php
+++ b/scripts/diag.php
@@ -39,10 +39,8 @@ function HandleRuleset($pagename) {
function DisplayStopWatch() {
global $StopWatch;
StopWatch('now');
- $u = $StopWatch[0];
- $au=$u;
$out[] = "<pre>";
- foreach($StopWatch as $k => $x) {
+ foreach((array)$StopWatch as $k => $x) {
$out[] = "$x\n";
}
array_pop($StopWatch);