|
|
@ -41,6 +41,7 @@
|
|
|
|
$png = $png_response ? curl_multi_getcontent($png_response) : null;
|
|
|
|
$png = $png_response ? curl_multi_getcontent($png_response) : null;
|
|
|
|
if (empty($png)) {
|
|
|
|
if (empty($png)) {
|
|
|
|
log_warning("$room_id returned an empty QR code.");
|
|
|
|
log_warning("$room_id returned an empty QR code.");
|
|
|
|
|
|
|
|
touch($png_cached);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Never overwrite with an empty file.
|
|
|
|
// Never overwrite with an empty file.
|
|
|
|
if (!(file_exists($png_cached) && filesize($png_cached) > 0 && empty($png))) {
|
|
|
|
if (!(file_exists($png_cached) && filesize($png_cached) > 0 && empty($png))) {
|
|
|
|