componentlib MDL-20966 Added a guard to prevent a php warning during upgrade

This commit is contained in:
Andrew Davis 2009-12-03 01:02:19 +00:00
parent 1024efd307
commit 658790e9e1

View File

@ -502,7 +502,9 @@ class component_installer {
continue;
}
$component[0]=trim($component[0]);
$component[1]=trim($component[1]);
if (!empty($component[1])) {
$component[1]=trim($component[1]);
}
if (!empty($component[2])) {
$component[2]=trim($component[2]);
}