chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b93372
)
Removed some warnings...
author
Hans-Emil Skogh
<hansemil@gmail.com>
Sat, 21 Jan 2012 10:24:18 +0000
(11:24 +0100)
committer
Hans-Emil Skogh
<hansemil@gmail.com>
Sat, 21 Jan 2012 10:24:18 +0000
(11:24 +0100)
wp-fdroid/wp-fdroid.php
patch
|
blob
|
history
diff --git
a/wp-fdroid/wp-fdroid.php
b/wp-fdroid/wp-fdroid.php
index 385e90c8c83b57df344edac22b44460d64d689e3..466124233c93a11b823111e4dcd77cde1d472420 100644
(file)
--- 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).')</span>';
}
- if(
$apk['srcname']
) {
+ if(
isset($apk['srcname']) && file_exists($this->site_path.'/repo/'.$apk['srcname'])
) {
$out.='<br /><a href="http://f-droid.org/repo/'.$apk['srcname'].'">source tarball</a> ';
$out.=$this->human_readable_size(filesize($this->site_path.'/repo/'.$apk['srcname']));
}