- public static function set($uid, $family, $key, $value) {
-
- $a = get_app();
-
- // We store our setting values in a string variable.
- // So we have to do the conversion here so that the compare below works.
- // The exception are array values.
- $dbvalue = (!is_array($value) ? (string)$value : $value);
-
- $stored = self::get($uid, $family, $key, null, true);
-
- if (($stored === $dbvalue) AND self::$in_db[$uid][$family][$key]) {
- return true;
+ public static function set($uid, $family, $key, $value)
+ {
+ // Database isn't ready or populated yet
+ if (!(self::getApp()->mode & App::MODE_DBCONFIGAVAILABLE)) {
+ return false;