Corrected type and stopped log file error

This commit is contained in:
Ciaran Gultnieks 2012-08-26 11:57:46 +01:00
parent 3477400b01
commit 452c1861e1

View file

@ -301,7 +301,7 @@ class FDroid
// Is this source or binary? // Is this source or binary?
$srcbuild = isset($apk['srcname']) && file_exists($this->site_path.'/repo/'.$apk['srcname']); $srcbuild = isset($apk['srcname']) && file_exists($this->site_path.'/repo/'.$apk['srcname']);
$out.="<p>This version is build and signed by "; $out.="<p>This version is built and signed by ";
if($srcbuild) { if($srcbuild) {
$out.="F-Droid, and guaranteed to correspond to the source tarball below.</p>"; $out.="F-Droid, and guaranteed to correspond to the source tarball below.</p>";
} else { } else {
@ -421,10 +421,12 @@ class FDroid
} }
$summary = ''; $summary = '';
if(isset($summaryCount)) {
foreach($summaryCount as $protectionLevel => $count) { foreach($summaryCount as $protectionLevel => $count) {
$summary .= $this->get_permission_protection_level_icon($protectionLevel, 'regular').' '.$count; $summary .= $this->get_permission_protection_level_icon($protectionLevel, 'regular').' '.$count;
$summary .= ', '; $summary .= ', ';
} }
}
$summary = substr($summary,0,-2); $summary = substr($summary,0,-2);
return $out; return $out;