From fd9196f036c17a11bc793525a082d16a3e198f5a Mon Sep 17 00:00:00 2001 From: czaks Date: Wed, 24 Sep 2014 03:43:14 +0200 Subject: [PATCH] tools/stats.php: restore php 5.3 compatibility; fixes vichan-devel#85 --- tools/stats.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/stats.php b/tools/stats.php index 0f05d6a8..cec8d2ab 100755 --- a/tools/stats.php +++ b/tools/stats.php @@ -2,11 +2,12 @@ fetch()) { printf("%10s || ", $f['uri']); - foreach ($variants as list($term, $time)) { + foreach ($variants as $iter) { + list($term, $time) = $iter; $qq = query(sprintf("SELECT COUNT(*) as count FROM ``posts_%s`` WHERE time > %d", $f['uri'], time()-$time)); $c = $qq->fetch()['count'];