From b7d585164377af221132be88b3dbb97cee66819d Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Tue, 10 Aug 2021 08:06:36 +0200 Subject: [PATCH] Update helperFunctions.php --- sccpManTraits/helperFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sccpManTraits/helperFunctions.php b/sccpManTraits/helperFunctions.php index 672ec3b..e6fa71b 100644 --- a/sccpManTraits/helperFunctions.php +++ b/sccpManTraits/helperFunctions.php @@ -93,7 +93,7 @@ trait helperfunctions { private function getTableEnums($table, $trim_underscore = true) { $enumFields = array(); $sccpTableDesc = $this->dbinterface->getSccpDeviceTableData("get_columns_{$table}"); - foreach ($sccpTableDesc as $key = $data) { + foreach ($sccpTableDesc as $key => $data) { // function has 2 roles: return actual table keys (trim_underscore = false) // return sanitised keys to add defaults (trim_underscore = true) if ($trim_underscore) {