mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 03:17:01 +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:
@ -99,7 +99,7 @@ class ControllerAuditHelper extends Controller {
|
||||
$s = preg_replace("/\s{1,}/", " ", $s);
|
||||
$b = explode(" ", $s);
|
||||
|
||||
while(list($k, $v) = each($b)) {
|
||||
foreach ($b as $k => $v) {
|
||||
if($v == '') { continue; }
|
||||
|
||||
if(preg_match("/(login|loginfailed|logout|view|download|search|restore|journal)$/", $v) && isset($actions[$v])) { $this->a['action'] .= "\t" . $actions[$v]; }
|
||||
|
Reference in New Issue
Block a user