file_put needs to be outside the if (tnx fer hint DF2ET)

This commit is contained in:
int2001
2024-12-05 07:20:52 +00:00
parent 0f1396f2a5
commit 31e9c8c7af

View File

@@ -371,10 +371,10 @@ class Qrz extends CI_Controller {
$content = htmlspecialchars_decode(curl_exec($ch));
if (strlen($content)<100) {
file_put_contents($file, $content);
$result = "QRZ downloading failed, either due to it being down or incorrect logins.";
return "false";
}
file_put_contents($file, $content);
ini_set('memory_limit', '-1');
$result = $this->loadFromFile($file, $station_ids);