From fc5d20f4d610711f92a5afe30115232aa281c86d Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Mon, 10 Aug 2015 08:57:21 -0400 Subject: [PATCH] Safen up getUsingCustomStreamSettings() --- airtime_mvc/application/models/Preference.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index bd6680c14..462025a1b 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -1441,7 +1441,8 @@ class Application_Model_Preference // SAAS-876 - Toggle indicating whether user is using custom stream settings public static function getUsingCustomStreamSettings() { - return self::getValue("using_custom_stream_settings"); + $val = self::getValue("using_custom_stream_settings"); + return empty($val) ? false : $val; } public static function setUsingCustomStreamSettings($value) {