curl_close($ch);
$result_array = json_decode($result, true);
- if ($result_array && $result_array['id'] && $result_array['key']) {
-
+ if (!$result_array) {
+ $this->errors->add($i18n->get('error.file_storage'));
+ }
+ else if ($result_array['error']) {
+ // Add an error from file storage facility if we have it.
+ $this->errors->add($result_array['error']);
+ }
+ else if ($result_array['id'] && $result_array['key']) {
$this->site_id = $result_array['id'];
$this->site_key = $result_array['key'];
$result_array = json_decode($result, true);
$file_id = (int) $result_array['file_id'];
$file_key = $result_array['file_key'];
- $file_error = $result_array['file_error'];
+ $error = $result_array['error'];
if (!$file_id || !$file_key) {
- if ($file_error) {
+ if ($error) {
// Add an error from file storage facility if we have it.
- $this->errors->add($file_error);
+ $this->errors->add($error);
}
return false;
}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.61.4885 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.61.4886 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>