From 2c69095a1edf7474073451285238659d0f62ce3f Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Sun, 25 Sep 2022 13:30:13 +1000 Subject: PHP8.1 fixes from Rector --- tools/stats.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'tools/stats.php') diff --git a/tools/stats.php b/tools/stats.php index 00214842..0729418f 100755 --- a/tools/stats.php +++ b/tools/stats.php @@ -1,14 +1,13 @@ #!/usr/bin/php fetch()) { $str = mb_str_pad($str,10," ", STR_PAD_LEFT, "UTF-8"); printf("%s || ", $str); foreach ($variants as $iter) { - list($term, $time) = $iter; + [$term, $time] = $iter; $qq = query(sprintf("SELECT COUNT(*) as count FROM ``posts_%s`` WHERE time > %d", $f['uri'], time()-$time)); $c = $qq->fetch()['count']; -- cgit v1.3