From 1637731d9933c4283fe2fd9f635aa7d312c89cc4 Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Mon, 4 May 2020 12:39:13 +0300 Subject: [PATCH] -- Bug fix Thanks for the help @BossLX -- Bug fix issues/73 --- Sccp_manager.inc/srvinterface.class.php | 11 ----------- install.php | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/Sccp_manager.inc/srvinterface.class.php b/Sccp_manager.inc/srvinterface.class.php index 9e38267..5c26ddc 100644 --- a/Sccp_manager.inc/srvinterface.class.php +++ b/Sccp_manager.inc/srvinterface.class.php @@ -224,17 +224,6 @@ class srvinterface { default: return 430; } - /* if ($res["vCode"] >= 433) { - - } - if ($res["vCode"] >= 431) { - return 431; - } else { - return 430; - } - * - */ -// return $res["vCode"]; } public function getSCCPVersion() { diff --git a/install.php b/install.php index c2b523d..419cf05 100644 --- a/install.php +++ b/install.php @@ -744,7 +744,7 @@ function InstallDB_updateDBVer($sccp_compatible) { global $db; outn("
  • " . _("Update DB Ver") . "
  • "); - $sql = "REPLACE INTO `sccpsettings` (`keyword`, `data`, `seq`, `type`), VALUES ('SccpDBmodel', '"+$sccp_compatible+ "','30','0');"; + $sql = "REPLACE INTO `sccpsettings` (`keyword`, `data`, `seq`, `type`), VALUES ('SccpDBmodel', '". $sccp_compatible. "','30','0');"; $results = $db->query($sql); if (DB::IsError($check)) { die_freepbx(sprintf(_("Error updating sccpdeviceconfig view. Command was: %s; error was: %s "), $sql, $results->getMessage()));