]> git.mxchange.org Git - friendica.git/commitdiff
check type for matches
authorArt4 <art4@wlabs.de>
Wed, 4 Jun 2025 06:51:35 +0000 (06:51 +0000)
committerArt4 <art4@wlabs.de>
Wed, 4 Jun 2025 06:51:35 +0000 (06:51 +0000)
src/Core/Addon/AddonInfo.php

index 60a4b6dc708499c4a2fc025243cde0a2a5987645..98e7fb3ed372dfb3a772969d1aa120300f0ab7a8 100644 (file)
@@ -43,7 +43,7 @@ final class AddonInfo
 
                $result = preg_match("|/\*.*\*/|msU", $raw, $m);
 
-               if ($result === false || $result === 0) {
+               if ($result === false || $result === 0 || !is_array($m) || count($m) < 1) {
                        return self::fromArray($data);
                }