mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 08:37:02 +02:00
Replaced most each() calls with foreach() in preparation to support php 8
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -69,7 +69,7 @@ class ModelStatChart extends Model {
|
||||
|
||||
if($query->num_rows >= 15) {
|
||||
$i = 0;
|
||||
while(list($k, $v) = each($dates)) {
|
||||
foreach($dates as $k => $v) {
|
||||
$i++;
|
||||
if($i % 3) { $dates[$k] = ""; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user