]> git.mxchange.org Git - friendica.git/commitdiff
We don't need an order.
authorMichael <heluecht@pirati.ca>
Wed, 9 Aug 2017 07:57:33 +0000 (07:57 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 9 Aug 2017 07:57:33 +0000 (07:57 +0000)
src/Core/Config.php
src/Core/PConfig.php

index fbb79bc5b1bd72d6bff316c2970f0f0abe59cf69..71189bd0eb811a7eaf0c7792d833602444da352c 100644 (file)
@@ -46,7 +46,7 @@ class Config {
 
                $a = get_app();
 
-               $r = dba::select('config', array('v', 'k'), array('cat' => $family), array("order" => array("cat", "k")));
+               $r = dba::select('config', array('v', 'k'), array('cat' => $family));
                while ($rr = dba::fetch($r)) {
                        $k = $rr['k'];
                        if ($family === 'config') {
@@ -97,8 +97,7 @@ class Config {
                        }
                }
 
-               $ret = dba::select('config', array('v'), array('cat' => $family, 'k' => $key),
-                               array("order" => array("cat", "k"), 'limit' => 1));
+               $ret = dba::select('config', array('v'), array('cat' => $family, 'k' => $key), array('limit' => 1));
                if (dbm::is_result($ret)) {
                        // manage array value
                        $val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret['v']) ? unserialize($ret['v']) : $ret['v']);
index 4b43d969a27fbfa076cdde5e3d20fdaf89016f50..ab3d548c0735be9532d4f3c73805d511b7038c60 100644 (file)
@@ -36,8 +36,7 @@ class PConfig {
        public static function load($uid, $family) {
                $a = get_app();
 
-               $r = dba::select('pconfig', array('v', 'k'), array('cat' => $family, 'uid' => $uid),
-                               array("order" => array('uid', 'cat', 'k')));
+               $r = dba::select('pconfig', array('v', 'k'), array('cat' => $family, 'uid' => $uid));
                if (dbm::is_result($r)) {
                        while ($rr = dba::fetch($r)) {
                                $k = $rr['k'];
@@ -89,8 +88,7 @@ class PConfig {
                        }
                }
 
-               $ret = dba::select('pconfig', array('v'), array('uid' => $uid, 'cat' => $family, 'k' => $key),
-                               array("order" => array('uid', 'cat', 'k'), 'limit' => 1));
+               $ret = dba::select('pconfig', array('v'), array('uid' => $uid, 'cat' => $family, 'k' => $key), array('limit' => 1));
                if (dbm::is_result($ret)) {
                        $val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret['v']) ? unserialize($ret['v']) : $ret['v']);
                        $a->config[$uid][$family][$key] = $val;