mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-10 09:10:30 +03:00
Semi-graceful handling of unknown anti-features.
This commit is contained in:
parent
dd1ff8b6d9
commit
7b6d8b1646
1 changed files with 5 additions and 1 deletions
|
|
@ -414,7 +414,11 @@ class FDroid
|
|||
$antifeatureDesctiption['nonfreedep']['name'] = 'Non-Free Dependencies';
|
||||
$antifeatureDesctiption['nonfreedep']['description'] = 'This application depends on another non-Free application';
|
||||
|
||||
return $antifeatureDesctiption[strtolower($antifeature)];
|
||||
$antifeatureLower = strtolower($antifeature);
|
||||
if(isset($antifeatureDesctiption[$antifeatureLower])) {
|
||||
return $antifeatureDesctiption[$antifeatureLower];
|
||||
}
|
||||
return array('name'=>$antifeature);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue