diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-08-19 21:21:40 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-08-19 21:21:40 +0200 |
commit | caec47b75d132b98a1b251448a46d3756d05c7b8 (patch) | |
tree | 3e0caaf68b66138e7531bfe22ca0ba7693561e38 /application/controllers | |
parent | 1dd61073aa449e6f2bc13e44775ed2edf03914fb (diff) |
hide "Latest release" on client page if there is none
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/file.php | 4 |
1 files changed, 3 insertions, 1 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/'; |