mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
Possibly fixes the last of the clublog errors
This commit is contained in:
parent
d16874e1b4
commit
d6acdce80d
2 changed files with 7 additions and 4 deletions
|
|
@ -80,9 +80,10 @@ class Clublog extends CI_Controller {
|
|||
$info = curl_getinfo($request);
|
||||
|
||||
if(curl_errno($request)) {
|
||||
echo 'Curl error: '.curl_error($request);
|
||||
$catch_error = curl_error($request);
|
||||
}
|
||||
curl_close ($request);
|
||||
curl_close ($request);
|
||||
|
||||
|
||||
// If Clublog Accepts mark the QSOs
|
||||
if (preg_match('/\baccepted\b/', $response)) {
|
||||
|
|
@ -90,8 +91,10 @@ class Clublog extends CI_Controller {
|
|||
|
||||
echo "QSOs uploaded and Logbook QSOs marked as sent to Clublog";
|
||||
} else {
|
||||
echo "some other issue";
|
||||
echo $catch_error;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
echo "Nothing awaiting upload to clublog";
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class Clublog_model extends CI_Model {
|
|||
'COL_CLUBLOG_QSO_UPLOAD_STATUS' => "Y",
|
||||
);
|
||||
|
||||
$this->db->where("COL_CLUBLOG_QSO_UPLOAD_STATUS", "");
|
||||
$this->db->where("COL_CLUBLOG_QSO_UPLOAD_STATUS", null);
|
||||
$this->db->or_where("COL_CLUBLOG_QSO_UPLOAD_STATUS", "N");
|
||||
$this->db->update($this->config->item('table_name'), $data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue