mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01: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:
@ -53,7 +53,7 @@ class MySQL {
|
||||
|
||||
$R = $s->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
while(list ($k, $v) = each($R)){
|
||||
foreach($R as $k => $v) {
|
||||
$data[$i] = $v;
|
||||
$i++;
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ class Sphinx {
|
||||
|
||||
$R = $s->fetchAll();
|
||||
|
||||
while(list ($k, $v) = each($R)){
|
||||
foreach($R as $k => $v) {
|
||||
$data[$i] = $v;
|
||||
$i++;
|
||||
}
|
||||
@ -72,7 +72,7 @@ class Sphinx {
|
||||
|
||||
$meta->execute();
|
||||
$R = $meta->fetchAll();
|
||||
while(list ($k, $v) = each($R)){
|
||||
foreach($R as $k => $v) {
|
||||
if($v[0] == "total_found") { $query->total_found = $v[1]; }
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ class SQLite {
|
||||
|
||||
$R = $s->fetchAll();
|
||||
|
||||
while(list ($k, $v) = each($R)){
|
||||
foreach($R as $k => $v) {
|
||||
$data[$i] = $v;
|
||||
$i++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user