Semi-graceful handling of unknown anti-features.

This commit is contained in:
Hans-Emil Skogh 2012-01-23 21:13:32 +01:00
parent dd1ff8b6d9
commit 7b6d8b1646

View file

@ -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);
}