- 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) && self::$in_db[$uid][$family][$key]) {
- return true;
+ public static function set($uid, $family, $key, $value)
+ {
+ if (empty(self::$adapter)) {
+ self::init($uid);