Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMatthew Dawson <matthew@mjdsystems.ca>2011-01-04 02:11:16 +0300
committerMatthew Dawson <matthew@mjdsystems.ca>2011-01-04 20:05:03 +0300
commit5c856e5741350e1130fc3026c59ab78109dd5b6a (patch)
tree68e95f2a9b55764d00c13b30aee7a5bab15743c4 /inc
parent290b2d7355ed7075eb1e05f6d4b36d3ea1b9534b (diff)
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.php6
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;