summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-10-17 11:35:13 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-10-17 11:35:13 +0200
commit793ccfd1dfec6ace56f5090bbf955a487f707c0b (patch)
tree3ee6d8f8ffbad37a250d44dee51241e2aea6f0f5 /lib
parent186c6a56d13206f03bbc80ecac59ff8c6df63840 (diff)
downloadnextcloud-server-793ccfd1dfec6ace56f5090bbf955a487f707c0b.tar.gz
nextcloud-server-793ccfd1dfec6ace56f5090bbf955a487f707c0b.zip
fix undefined "shipped"
Diffstat (limited to 'lib')
-rw-r--r--lib/private/app.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 1a242ad968e..6f45b6e6dd7 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -770,12 +770,12 @@ class OC_App{
}
// prio 2: shipped
- if ($a['shipped'] != $b['shipped']) {
- $atemp = ($a['shipped'] == true ? 1 : 0);
- $btemp = ($b['shipped'] == true ? 1 : 0);
- return ($btemp - $atemp);
+ $ashipped = (array_key_exists('shipped', $a) && $a['shipped'] === 'true') ? 1 : 0;
+ $bshipped = (array_key_exists('shipped', $b) && $b['shipped'] === 'true') ? 1 : 0;
+ if ($ashipped !== $bshipped) {
+ return ($bshipped - $ashipped);
}
-
+
// prio 3: recommended
if ($a['internalclass'] != $b['internalclass']) {
$atemp = ($a['internalclass'] == 'recommendedapp' ? 1 : 0);