mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-23 13:13:57 +09:00
PHP7.2 changes:
- Replaced deprecated each() for foreach()
This commit is contained in:
1 parent
0c45cf533f
commit
d2185c98b1
33 files changed
+56
-54
No files matched your search
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user