blob: f786d1545cf4d5290e40c213f352fc6ffeda342e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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?
|