Fix incompatibility with new Describe table
This commit is contained in:
parent
662e2a4aa3
commit
91d6ad2f48
|
@ -121,7 +121,7 @@ class dbinterface
|
|||
$stmts = $this->db->prepare('DESCRIBE sccpuser');
|
||||
break;
|
||||
case 'get_columns_sccpline':
|
||||
$stmts = $this->db->prepare('DESCRIBE sccpline');
|
||||
$stmtU = $this->db->prepare('DESCRIBE sccpline');
|
||||
break;
|
||||
case 'get_sccpdevice_byid':
|
||||
$stmt = $this->db->prepare('SELECT t1.*, types.dns, types.buttons, types.loadimage, types.nametemplate as nametemplate,
|
||||
|
|
|
@ -77,8 +77,7 @@ trait helperfunctions {
|
|||
return $this->sccpvalues;
|
||||
}
|
||||
$sccpTableDesc = $this->dbinterface->getSccpDeviceTableData("get_columns_{$table}");
|
||||
foreach ($sccpTableDesc as $data) {
|
||||
$key = (string) $data['Field'];
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue