diff --git a/modules/tv/classes/Channel.php b/modules/tv/classes/Channel.php index a4350283..be45b6ff 100644 --- ./modules/tv/classes/Channel.php +++ ./modules/tv/classes/Channel.php @@ -113,6 +113,9 @@ class Channel extends MythBase { foreach ($channel_data AS $key => $value) $this->$key = $value; $this->icon = 'data/tv_icons/'.basename($channel_data['icon']); + // Remove icons smaller than 100 bytes + if (file_exists($this->icon) && filesize($this->icon) < 100) + unlink($this->icon); // Try to copy over any missing channel icons if ($channel_data['icon'] && !file_exists($this->icon)) { // Local file?