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:
@ -140,7 +140,7 @@ class ControllerSearchHelper extends Controller {
|
||||
$s = preg_replace("/OR/", "|", $data['search']);
|
||||
$b = preg_split("/\s/", $s);
|
||||
|
||||
while(list($k, $v) = each($b)) {
|
||||
foreach ($b as $k => $v) {
|
||||
if($v == '') { continue; }
|
||||
|
||||
if(preg_match("/\d{4}\-\d{1,2}\-\d{1,2}/", $v) || preg_match("/\d{1,2}\/\d{1,2}\/\d{4}/", $v)) {
|
||||
|
Reference in New Issue
Block a user