diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 0b081ca70..6456a118b 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -320,9 +320,7 @@ class Lotw extends CI_Controller { } } - $pos = strpos($result, ""); - - if ($pos === false) { + if (!preg_match('//', $result)) { // Upload of TQ8 Failed for unknown reason echo $station_profile->station_callsign." (".$station_profile->station_profile_name."): Upload Failed - ".curl_strerror(curl_errno($ch))." (".curl_errno($ch).")
"; $this->Lotw_model->last_upload($data['lotw_cert_info']->lotw_cert_id, "Upload failed");