]> git.mxchange.org Git - friendica.git/blobdiff - include/Core/Config.php
Coding convention applied:
[friendica.git] / include / Core / Config.php
index 79424c9a191529be9de31ffddac383127385681d..523572886457edb82971cd645ceb6ee42e03cb28 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 namespace Friendica\Core;
+
+use dbm;
+
 /**
  * @file include/Core/Config.php
  *
@@ -94,7 +97,7 @@ class Config {
                        dbesc($family),
                        dbesc($key)
                );
-               if (count($ret)) {
+               if (dbm::is_result($ret)) {
                        // manage array value
                        $val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
                        $a->config[$family][$key] = $val;