]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Addon.php
Some more notices (#5526)
[friendica.git] / src / Core / Addon.php
index bfb2a1e8fddbdd01f11e93125b65004bd2ba4ea8..e4acd6e9d36c5d873f9785cf2a72875deb6065b4 100644 (file)
@@ -311,7 +311,12 @@ class Addon
                        foreach ($ll as $l) {
                                $l = trim($l, "\t\n\r */");
                                if ($l != "") {
-                                       list($type, $v) = array_map("trim", explode(":", $l, 2));
+                                       $addon_info = array_map("trim", explode(":", $l, 2));
+                                       if (count($addon_info) < 2) {
+                                               continue;
+                                       }
+
+                                       list($type, $v) = $addon_info;
                                        $type = strtolower($type);
                                        if ($type == "author" || $type == "maintainer") {
                                                $r = preg_match("|([^<]+)<([^>]+)>|", $v, $m);