Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-12-16 20:22:44 +0400
committerVincent Petry <pvince81@owncloud.com>2013-12-20 20:16:57 +0400
commitc6377e9125ed2a1b508dd1d2e12db8a82934f648 (patch)
treeaab0af147b0d806c43dd3de9fc446bceca1f934c /lib/private/appconfig.php
parentdc45141f4abfedb10d6f908143b7a75e1ada6406 (diff)
Fixed apps loading order
On SQLite the app order can be arbitrary and cause strange bugs. On MySQL, the app order seems to be always alphabetical. This fix enforces alphabetical order to make sure that all environments behave the same and to reduce bugs related to app loading order. Fixes #6442
Diffstat (limited to 'lib/private/appconfig.php')
-rw-r--r--lib/private/appconfig.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/appconfig.php b/lib/private/appconfig.php
index dfe03698059..da0b2ff8604 100644
--- a/lib/private/appconfig.php
+++ b/lib/private/appconfig.php
@@ -52,7 +52,7 @@ class OC_Appconfig {
*/
public static function getApps() {
// No magic in here!
- $query = OC_DB::prepare('SELECT DISTINCT `appid` FROM `*PREFIX*appconfig`');
+ $query = OC_DB::prepare('SELECT DISTINCT `appid` FROM `*PREFIX*appconfig` ORDER BY `appid`');
$result = $query->execute();
$apps = array();