- $ret = dba::selectOne('pconfig', ['v'], ['uid' => $uid, 'cat' => $family, 'k' => $key]);
- if (DBM::is_result($ret)) {
- $val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret['v']) ? unserialize($ret['v']) : $ret['v']);
- $a->config[$uid][$family][$key] = $val;
- self::$in_db[$uid][$family][$key] = true;
-
- return $val;
- } else {
- $a->config[$uid][$family][$key] = '!<unset>!';
- self::$in_db[$uid][$family][$key] = false;
-
- return $default_value;