From 355b0b0ca337516f987a4f312154e42ec0779738 Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Fri, 4 Jun 2021 07:56:20 +0200 Subject: [PATCH] Fix issue - sccpline row not created Remove unnecessary escaping of quotation marks that caused SQL to reject command --- conf/Sccp.class.php.v433 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/Sccp.class.php.v433 b/conf/Sccp.class.php.v433 index 4fbc195..1212771 100644 --- a/conf/Sccp.class.php.v433 +++ b/conf/Sccp.class.php.v433 @@ -91,11 +91,11 @@ class Sccp extends \FreePBX\modules\Core\Driver { $tech[$row["Field"]]=$row["Field"]; } $sqlCol = 'name'; - $sqlVal = "\'{$id}\'"; + $sqlVal = "'{$id}'"; foreach($this->data_fld as $key => $val) { if (isset($settings[$val]['value'])){ $sqlCol .= ", {$key}"; - $sqlVal .= ", \' {$settings[$val]['value']} \'"; + $sqlVal .= ", '{$settings[$val]['value']}'"; } } $sql = "REPLACE INTO sccpline ( {$sqlCol} ) VALUES ( {$sqlVal} );";