From 5b6f4ca12ab9ed06dc8feebdaec00a4546e83ac0 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Mon, 15 Jun 2015 12:19:03 -0400 Subject: [PATCH] SAAS-863: Streams not disabled properly in Liquidsoap config when downgrading --- airtime_mvc/application/models/Preference.php | 14 ++++++++++++++ airtime_mvc/application/models/StreamSetting.php | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 934083a2f..8df139255 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -1,5 +1,6 @@ $enable)); + } } public static function GetNumOfStreams() diff --git a/airtime_mvc/application/models/StreamSetting.php b/airtime_mvc/application/models/StreamSetting.php index 391ae7dbb..52deb535c 100644 --- a/airtime_mvc/application/models/StreamSetting.php +++ b/airtime_mvc/application/models/StreamSetting.php @@ -279,7 +279,7 @@ class Application_Model_StreamSetting $sql = "UPDATE cc_stream_setting SET value=:v WHERE keyname=:keyname"; $map = array(":v" => $v, ":keyname"=>$keyname); - $res = Application_Common_Database::prepareAndExecute($sql, $map, + $res = Application_Common_Database::prepareAndExecute($sql, $map, Application_Common_Database::EXECUTE); } }