CC-5555: Fix user preferences logic in preferences cache

* Fixes stream settings not dislaying
This commit is contained in:
Albert Santoni 2013-12-06 17:11:07 -05:00
parent f695d7b895
commit 2c7db0e83c

View file

@ -146,8 +146,7 @@ class Application_Model_Preference
$paramMap[':key'] = $key;
//For user specific preference, check if id matches as well
if (isset($userId)) {
if ($isUserValue) {
$sql .= " AND subjid = :id";
$paramMap[':id'] = $userId;
}
@ -166,7 +165,7 @@ class Application_Model_Preference
$paramMap[':key'] = $key;
//For user specific preference, check if id matches as well
if (isset($userId)) {
if ($isUserValue) {
$sql .= " AND subjid = :id";
$paramMap[':id'] = $userId;
}