Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x
This commit is contained in:
commit
e6c971387b
2 changed files with 13 additions and 10 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