From cfb61955234b220c6029c0771535f7a18c515be8 Mon Sep 17 00:00:00 2001 From: drigato Date: Wed, 11 Dec 2013 16:55:35 -0500 Subject: [PATCH] CC-5632: System preferences don't get saved --- airtime_mvc/application/models/Preference.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 81ceb1d30..803a516fe 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -67,7 +67,7 @@ class Application_Model_Preference elseif ($result == 1) { // result found - if (is_null($userId)) { + if (!$isUserValue) { // system pref $sql = "UPDATE cc_pref" ." SET subjid = NULL, valstr = :value" @@ -85,7 +85,7 @@ class Application_Model_Preference else { // result not found - if (is_null($userId)) { + if (!$isUserValue) { // system pref $sql = "INSERT INTO cc_pref (keystr, valstr)" ." VALUES (:key, :value)";