]> git.mxchange.org Git - friendica.git/blobdiff - include/Core/PConfig.php
Coding convention applied:
[friendica.git] / include / Core / PConfig.php
index 33ec93c0eb5e4c15c5dfaea24892d70171f1feff..49b69a1f7a2d814de21e87e9e6ba2ca2bd4fa430 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 namespace Friendica\Core;
+
+use dbm;
+
 /**
  * @file include/Core/PConfig.php
  * @brief contains the class with methods for the management
@@ -89,7 +92,7 @@ class PConfig {
                        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;