Compatibility update
This commit is contained in:
parent
91d6ad2f48
commit
031ef0087e
|
@ -93,9 +93,7 @@ trait helperfunctions {
|
||||||
private function getTableEnums($table, $trim_underscore = true) {
|
private function getTableEnums($table, $trim_underscore = true) {
|
||||||
$enumFields = array();
|
$enumFields = array();
|
||||||
$sccpTableDesc = $this->dbinterface->getSccpDeviceTableData("get_columns_{$table}");
|
$sccpTableDesc = $this->dbinterface->getSccpDeviceTableData("get_columns_{$table}");
|
||||||
|
foreach ($sccpTableDesc as $key = $data) {
|
||||||
foreach ($sccpTableDesc as $data) {
|
|
||||||
$key = (string) $data['Field'];
|
|
||||||
// function has 2 roles: return actual table keys (trim_underscore = false)
|
// function has 2 roles: return actual table keys (trim_underscore = false)
|
||||||
// return sanitised keys to add defaults (trim_underscore = true)
|
// return sanitised keys to add defaults (trim_underscore = true)
|
||||||
if ($trim_underscore) {
|
if ($trim_underscore) {
|
||||||
|
|
Loading…
Reference in a new issue