From 8eea9350164e4feaf1bd2b65c351b64d17c1648d Mon Sep 17 00:00:00 2001 From: Hans-Emil Skogh Date: Sat, 21 Jan 2012 11:24:18 +0100 Subject: [PATCH] Removed some warnings... --- wp-fdroid/wp-fdroid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php index 385e90c8..46612423 100644 --- a/wp-fdroid/wp-fdroid.php +++ b/wp-fdroid/wp-fdroid.php @@ -231,7 +231,7 @@ class FDroid $out.=$diffSize>0?'+':''; $out.=$this->human_readable_size($diffSize, 1).')'; } - if($apk['srcname']) { + if(isset($apk['srcname']) && file_exists($this->site_path.'/repo/'.$apk['srcname'])) { $out.='
source tarball '; $out.=$this->human_readable_size(filesize($this->site_path.'/repo/'.$apk['srcname'])); } -- 2.30.2