]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/PConfig.php
Merge pull request #4243 from MrPetovan/task/switch-to-array-new-style
[friendica.git] / src / Core / PConfig.php
index ad658f8f8ad77ebcdab8ae1ad61cba9b3bf3b07d..82d46908388e3131c7768c63a051fbf917d3c405 100644 (file)
@@ -41,7 +41,7 @@ class PConfig
        {
                $a = get_app();
 
-               $r = dba::select('pconfig', array('v', 'k'), array('cat' => $family, 'uid' => $uid));
+               $r = dba::select('pconfig', ['v', 'k'], ['cat' => $family, 'uid' => $uid]);
                if (DBM::is_result($r)) {
                        while ($rr = dba::fetch($r)) {
                                $k = $rr['k'];
@@ -140,7 +140,7 @@ class PConfig
                // manage array value
                $dbvalue = (is_array($value) ? serialize($value) : $dbvalue);
 
-               $ret = dba::update('pconfig', array('v' => $dbvalue), array('uid' => $uid, 'cat' => $family, 'k' => $key), true);
+               $ret = dba::update('pconfig', ['v' => $dbvalue], ['uid' => $uid, 'cat' => $family, 'k' => $key], true);
 
                if ($ret) {
                        self::$in_db[$uid][$family][$key] = true;
@@ -170,7 +170,7 @@ class PConfig
                        unset(self::$in_db[$uid][$family][$key]);
                }
 
-               $ret = dba::delete('pconfig', array('uid' => $uid, 'cat' => $family, 'k' => $key));
+               $ret = dba::delete('pconfig', ['uid' => $uid, 'cat' => $family, 'k' => $key]);
 
                return $ret;
        }