mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Fix a warning when there is no included files in a plugin.
Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>
This commit is contained in:
parent
290b2d7355
commit
5c856e5741
1 changed files with 4 additions and 2 deletions
|
|
@ -59,8 +59,10 @@ class OC_PLUGIN{
|
|||
}
|
||||
}
|
||||
|
||||
foreach($data['runtime'] as $include){
|
||||
include($SERVERROOT.'/plugins/'.$id.'/'.$include);
|
||||
if(isset($data['runtime'])){
|
||||
foreach($data['runtime'] as $include){
|
||||
include($SERVERROOT.'/plugins/'.$id.'/'.$include);
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue