Permalink
Browse files

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

…upgrade
  • Loading branch information...
1 parent 7b9b800 commit 891027acf38081ec916146b6e159958182309b25 Andrew Davis committed Dec 3, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/componentlib.class.php
@@ -477,7 +477,9 @@ function get_all_components_md5() {
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]);
}

0 comments on commit 891027a

Please sign in to comment.