From 7b6d8b1646d7918081accf17785920db17399b7b Mon Sep 17 00:00:00 2001 From: Hans-Emil Skogh Date: Mon, 23 Jan 2012 21:13:32 +0100 Subject: [PATCH] Semi-graceful handling of unknown anti-features. --- wp-fdroid/wp-fdroid.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.30.2