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:
Matthew Dawson 2011-01-03 18:11:16 -05:00
parent 290b2d7355
commit 5c856e5741

View file

@ -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;