From: Robin Appelman Date: Sat, 16 Apr 2011 18:36:32 +0000 (+0200) Subject: don't use items in an array that aren't there X-Git-Tag: v3.0~267^2~558^2~133 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a16c6fb804d03ab06ac88a751b50127c3c29c440;p=nextcloud-server.git don't use items in an array that aren't there --- diff --git a/lib/app.php b/lib/app.php index 5db3e047fd7..c9e4d534357 100644 --- a/lib/app.php +++ b/lib/app.php @@ -270,6 +270,12 @@ class OC_APP{ if( is_null( $app )){ foreach( OC_APP::$settingspages as $i ){ + if(!isset($i["id"])){ + $i["id"]=''; + } + if(!isset($i["app"])){ + $i["app"]=''; + } if( $i["id"] == $i["app"] ){ $return[] = $i; }