<?php
namespace Friendica\Core;
+
+use dbm;
+
/**
* @file include/Core/PConfig.php
* @brief contains the class with methods for the management
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;