From f8720282bb185ee769faa8592c786d3ed51b617b Mon Sep 17 00:00:00 2001 From: tuxudo Date: Tue, 12 Sep 2023 23:00:18 -0400 Subject: [PATCH] Update Module_marketplace.php Fix issue with missing module description, bug found by @precursorca --- app/controllers/Module_marketplace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/Module_marketplace.php b/app/controllers/Module_marketplace.php index 11b679863..c66d1cbde 100755 --- a/app/controllers/Module_marketplace.php +++ b/app/controllers/Module_marketplace.php @@ -55,7 +55,7 @@ public function get_module_data() // Process each package foreach ($composer_pkgs as $pkg) { // Process each munkireport or munkireport module package - if (strpos(strtolower($pkg['description']), 'module for munkireport') !== false || substr( $pkg['name'], 0, 12 ) === "munkireport/"){ + if ((array_key_exists("description", $pkg) && strpos(strtolower($pkg['description']), 'module for munkireport') !== false) || substr( $pkg['name'], 0, 12 ) === "munkireport/"){ $name_array = explode("/",$pkg['name']);