don't use items in an array that aren't there
This commit is contained in:
parent
fb74de326d
commit
a16c6fb804
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue