CC-5632: System preferences don't get saved
This commit is contained in:
parent
8aa838bb34
commit
cfb6195523
1 changed files with 2 additions and 2 deletions
|
@ -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)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue