Fix a warning when there is no included files in a plugin.

Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>
remotes/origin/stable
Matthew Dawson 2011-01-03 18:11:16 +07:00
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;