]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't use items in an array that aren't there
authorRobin Appelman <icewind1991@gmail.com>
Sat, 16 Apr 2011 18:36:32 +0000 (20:36 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Sat, 16 Apr 2011 18:36:43 +0000 (20:36 +0200)
lib/app.php

index 5db3e047fd79a2de868840264e0b2736efc0ee72..c9e4d534357e881e364708b5ed1dc87629839ecb 100644 (file)
@@ -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;
                                }