fix undefined "shipped"
This commit is contained in:
parent
186c6a56d1
commit
793ccfd1df
|
@ -770,12 +770,12 @@ class OC_App{
|
||||||
}
|
}
|
||||||
|
|
||||||
// prio 2: shipped
|
// prio 2: shipped
|
||||||
if ($a['shipped'] != $b['shipped']) {
|
$ashipped = (array_key_exists('shipped', $a) && $a['shipped'] === 'true') ? 1 : 0;
|
||||||
$atemp = ($a['shipped'] == true ? 1 : 0);
|
$bshipped = (array_key_exists('shipped', $b) && $b['shipped'] === 'true') ? 1 : 0;
|
||||||
$btemp = ($b['shipped'] == true ? 1 : 0);
|
if ($ashipped !== $bshipped) {
|
||||||
return ($btemp - $atemp);
|
return ($bshipped - $ashipped);
|
||||||
}
|
}
|
||||||
|
|
||||||
// prio 3: recommended
|
// prio 3: recommended
|
||||||
if ($a['internalclass'] != $b['internalclass']) {
|
if ($a['internalclass'] != $b['internalclass']) {
|
||||||
$atemp = ($a['internalclass'] == 'recommendedapp' ? 1 : 0);
|
$atemp = ($a['internalclass'] == 'recommendedapp' ? 1 : 0);
|
||||||
|
|
Loading…
Reference in New Issue