diff options
author | pmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360> | 2004-12-28 22:52:52 +0000 |
---|---|---|
committer | pmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360> | 2004-12-28 22:52:52 +0000 |
commit | 25ccf56d23561df886455a28c56dd01da65e6c23 (patch) | |
tree | cc8a88c5e89a88482ddf3963be0eb1e7a69fafe0 /scripts/diag.php | |
parent | 63e2269e4d4fdff12ad9bed7817051cb21fb60ef (diff) | |
download | pmwiki.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.php | 4 |
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); |