diff options
author | Matthew Dawson <matthew@mjdsystems.ca> | 2011-01-03 18:11:16 -0500 |
---|---|---|
committer | Matthew Dawson <matthew@mjdsystems.ca> | 2011-01-04 12:05:03 -0500 |
commit | 5c856e5741350e1130fc3026c59ab78109dd5b6a (patch) | |
tree | 68e95f2a9b55764d00c13b30aee7a5bab15743c4 /inc | |
parent | 290b2d7355ed7075eb1e05f6d4b36d3ea1b9534b (diff) | |
download | nextcloud-server-5c856e5741350e1130fc3026c59ab78109dd5b6a.tar.gz nextcloud-server-5c856e5741350e1130fc3026c59ab78109dd5b6a.zip |
Fix a warning when there is no included files in a plugin.
Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>
Diffstat (limited to 'inc')
-rw-r--r-- | inc/lib_plugin.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/lib_plugin.php b/inc/lib_plugin.php index 76f94a1156d..eb7533c4479 100644 --- a/inc/lib_plugin.php +++ b/inc/lib_plugin.php @@ -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; |