summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/file.php4
-rw-r--r--application/views/file/client.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 1cff27fa9..13787eeb6 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -58,7 +58,9 @@ class File extends CI_Controller {
function client()
{
$data['title'] = 'Client';
- $data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client.'.tar.gz';
+ if ($this->var->latest_client) {
+ $data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client.'.tar.gz';
+ }
$data['client_link_dir'] = base_url().'data/client/';
$data['client_link_deb'] = base_url().'data/client/deb/';
$data['client_link_slackware'] = base_url().'data/client/slackware/';
diff --git a/application/views/file/client.php b/application/views/file/client.php
index 2c4491542..6069c62b1 100644
--- a/application/views/file/client.php
+++ b/application/views/file/client.php
@@ -5,7 +5,7 @@ cat file | curl -n -F "file=@-;filename=stdin" <?php echo site_url(); ?> (bina
</pre>
<p><b>Client:</b></p>
<p>Development (git): <a href="http://git.server-speed.net/users/flo/fb/">http://git.server-speed.net/users/flo/fb/</a><br />
-Latest release: <a href="<?php echo $client_link; ?>"><?php echo $client_link; ?></a>.<br />
+<?php if($client_link) {?>Latest release: <a href="<?php echo $client_link; ?>"><?php echo $client_link; ?></a>.<br /><?php }; ?>
GPG sigs, older versions: <a href="<?php echo $client_link_dir; ?>"><?php echo $client_link_dir; ?></a>
</p>
<p>If you want to use authentication (needed for deleting) add the following to your ~/.netrc:</p>