<?php
namespace Friendica\Core;
+
+use dbm;
+
/**
* @file include/Core/PConfig.php
* @brief contains the class with methods for the management
dbesc($family),
intval($uid)
);
- if (count($r)) {
+ if (dbm::is_result($r)) {
foreach ($r as $rr) {
$k = $rr['k'];
$a->config[$uid][$family][$k] = $rr['v'];
dbesc($key)
);
- if (count($ret)) {
+ if (dbm::is_result($ret)) {
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
$a->config[$uid][$family][$key] = $val;