diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-12-16 17:22:44 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-12-20 17:16:57 +0100 |
commit | c6377e9125ed2a1b508dd1d2e12db8a82934f648 (patch) | |
tree | aab0af147b0d806c43dd3de9fc446bceca1f934c /lib/private/appconfig.php | |
parent | dc45141f4abfedb10d6f908143b7a75e1ada6406 (diff) | |
download | nextcloud-server-c6377e9125ed2a1b508dd1d2e12db8a82934f648.tar.gz nextcloud-server-c6377e9125ed2a1b508dd1d2e12db8a82934f648.zip |
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.php | 2 |
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(); |