mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 02:54:27 +02:00
check type for matches
This commit is contained in:
parent
1723417f43
commit
ab3e54f0e1
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ final class AddonInfo
|
||||||
|
|
||||||
$result = preg_match("|/\*.*\*/|msU", $raw, $m);
|
$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);
|
return self::fromArray($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue