]> git.mjollnir.org Git - moodle.git/commitdiff
componentlib MDL-20966 Added a guard to prevent a php warning during upgrade
authorAndrew Davis <andrew@affinitysoftware.net>
Thu, 3 Dec 2009 01:02:19 +0000 (01:02 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Thu, 3 Dec 2009 01:02:19 +0000 (01:02 +0000)
lib/componentlib.class.php

index 43a4be3427266198efe0d92ae0c70a5f35bfcb21..516d13c0dfdadbe7622c2c7c9ff403949fbf486c 100644 (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]);
                     }