Merge branch 'saas' into saas-speedy
This commit is contained in:
commit
d20c8e8df4
|
@ -37,8 +37,6 @@ class Application_Model_Preference
|
||||||
if ($isUserValue && is_null($userId))
|
if ($isUserValue && is_null($userId))
|
||||||
throw new Exception("User id can't be null for a user preference {$key}.");
|
throw new Exception("User id can't be null for a user preference {$key}.");
|
||||||
|
|
||||||
Application_Common_Database::prepareAndExecute("LOCK TABLE cc_pref");
|
|
||||||
|
|
||||||
//Check if key already exists
|
//Check if key already exists
|
||||||
$sql = "SELECT COUNT(*) FROM cc_pref"
|
$sql = "SELECT COUNT(*) FROM cc_pref"
|
||||||
." WHERE keystr = :key";
|
." WHERE keystr = :key";
|
||||||
|
|
Loading…
Reference in New Issue