From cb2ba3fd8d003bb64a6b0911391fc0edfb3e9680 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 19 Jun 2019 17:11:15 +0100 Subject: [PATCH] More code changes --- application/controllers/Clublog.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/application/controllers/Clublog.php b/application/controllers/Clublog.php index ad859f0b..f43570d6 100644 --- a/application/controllers/Clublog.php +++ b/application/controllers/Clublog.php @@ -66,13 +66,12 @@ class Clublog extends CI_Controller { curl_setopt($request, CURLOPT_RETURNTRANSFER, true); echo curl_exec($request); - $results = $request; + $results = strval($request); - // close the session - curl_close($request); + $check = strpos($results, 'accepted'); // If Clublog Accepts mark the QSOs - if (strpos($results, 'accepted') !== false) { + if ($check !== false) { $this->clublog_model->mark_qsos_sent(); echo "QSOs uploaded and Logbook QSOs marked as sent to Clublog";