From: Hans-Emil Skogh Date: Mon, 23 Jan 2012 20:13:32 +0000 (+0100) Subject: Semi-graceful handling of unknown anti-features. X-Git-Tag: 0.1~1063^2~2^2~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7b6d8b1646d7918081accf17785920db17399b7b;p=fdroidserver.git Semi-graceful handling of unknown anti-features. --- diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php index fc18f6d3..0a8b2530 100644 --- a/wp-fdroid/wp-fdroid.php +++ b/wp-fdroid/wp-fdroid.php @@ -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); }