remove each() keyword as it is deprecated as of php-7.2, fixes #479

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2017-10-31 13:03:06 +01:00
parent 15b62aae04
commit 421c29c491
10 changed files with 23 additions and 26 deletions

View File

@@ -99,7 +99,7 @@ if ($action == '') {
}
$add = false;
while (list($language_file, $language_name) = each($languages)) {
foreach ($languages as $language_file => $language_name) {
$templates_done = array();
$result_stmt = Database::prepare("
@@ -328,7 +328,7 @@ if ($action == '') {
$language_options = '';
$template_options = '';
while (list($language_file, $language_name) = each($languages)) {
foreach ($languages as $language_file => $language_name) {
$templates = array();
$result_stmt = Database::prepare("
SELECT `varname` FROM `" . TABLE_PANEL_TEMPLATES . "`