PHP7.2 changes:

- Replaced deprecated each() for foreach()
This commit is contained in:
patrick committed 2017-04-21 22:12:55 +02:00
1 parent 0c45cf533f
commit d2185c98b1
33 files changed
+56 -54

No files matched your search

+1 -1
View File
@@ -397,7 +397,7 @@ function form_actions() {
$host_list = ''; $i = 0;
/* loop through each of the host templates selected on the previous page and get more info about them */
while (list($var,$val) = each($_POST)) {
foreach ($_POST as $var => $val) {
if (preg_match('/^chk_([0-9]+)$/', $var, $matches)) {
/* ================= input validation ================= */
input_validate_input_number($matches[1]);