don't use items in an array that aren't there

This commit is contained in:
Robin Appelman 2011-04-16 20:36:32 +02:00
parent fb74de326d
commit a16c6fb804
1 changed files with 6 additions and 0 deletions

View 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;
}