From 452c1861e13d4981e8d8ef4d13b6e167202569c6 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sun, 26 Aug 2012 11:57:46 +0100 Subject: [PATCH] Corrected type and stopped log file error --- wp-fdroid/wp-fdroid.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php index 455c49ce..478075c7 100644 --- a/wp-fdroid/wp-fdroid.php +++ b/wp-fdroid/wp-fdroid.php @@ -301,7 +301,7 @@ class FDroid // Is this source or binary? $srcbuild = isset($apk['srcname']) && file_exists($this->site_path.'/repo/'.$apk['srcname']); - $out.="

This version is build and signed by "; + $out.="

This version is built and signed by "; if($srcbuild) { $out.="F-Droid, and guaranteed to correspond to the source tarball below.

"; } else { @@ -420,11 +420,13 @@ class FDroid $summaryCount[$permissions_data['permission'][$permission]['protectionLevel']]++; } - $summary = ''; - foreach($summaryCount as $protectionLevel => $count) { - $summary .= $this->get_permission_protection_level_icon($protectionLevel, 'regular').' '.$count; - $summary .= ', '; - } + $summary = ''; + if(isset($summaryCount)) { + foreach($summaryCount as $protectionLevel => $count) { + $summary .= $this->get_permission_protection_level_icon($protectionLevel, 'regular').' '.$count; + $summary .= ', '; + } + } $summary = substr($summary,0,-2); return $out; -- 2.30.2