Fix saving empty num value to db
Replace with NULL
This commit is contained in:
parent
4b40811d60
commit
65f3a6cd37
|
@ -164,7 +164,11 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
|||
} else {
|
||||
if (array_key_exists($key, $this->line_defaults)) {
|
||||
$sqlCol .= ", {$key}";
|
||||
if (!empty($this->line_defaults[$key])) {
|
||||
$sqlVal .= ", '{$this->line_defaults[$key]}'";
|
||||
} else {
|
||||
$sqlVal .= NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue