From 5c856e5741350e1130fc3026c59ab78109dd5b6a Mon Sep 17 00:00:00 2001 From: Matthew Dawson Date: Mon, 3 Jan 2011 18:11:16 -0500 Subject: [PATCH] Fix a warning when there is no included files in a plugin. Signed-off-by: Matthew Dawson --- inc/lib_plugin.php | 6 ++++-- 1 file 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;