diff options
Diffstat (limited to 'application/controllers/file.php')
-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 9458e9f53..f9892d5ca 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -16,7 +16,9 @@ class File extends CI_Controller { $this->load->model('file_mod'); $this->var->cli_client = false; $this->file_mod->var->cli_client =& $this->var->cli_client; - $this->var->latest_client = trim(file_get_contents(FCPATH.'data/client/latest')); + if (file_exists(FCPATH.'data/client/latest')) { + $this->var->latest_client = trim(file_get_contents(FCPATH.'data/client/latest')); + } // official client uses "fb-client/$version" as useragent $clients = array("fb-client", "libcurl", "pyfb"); |