Skip to content
Snippets Groups Projects
Commit d2b1a361 authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

Merge pull request #5379 from owncloud/undefined-shipped

fix undefined "shipped"
parents ea4f6e24 793ccfd1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment