Fix missing icons

dev
gravel 2 years ago
parent c1541b2c9a
commit f934703e6f
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -49,6 +49,9 @@
$icon_cached = room_icon_path($room_id);
$icon_resized = room_icon_path_resized($room_id, $size);
if (file_exists($icon_resized)) {
if (empty(file_get_contents($icon_resized))) {
return "";
}
return room_icon_path_relative($room_id, $size);
}
if (!file_exists($icon_cached)) {

Loading…
Cancel
Save