summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 3f18392a8..7f287e7cb 100644
--- a/functions.php
+++ b/functions.php
@@ -3048,7 +3048,8 @@
if ($id < -10) {
return "images/label.png";
} else {
- return ICONS_URL . "/$id.ico";
+ if (file_exists(ICONS_DIR . "/$id.ico"))
+ return ICONS_URL . "/$id.ico";
}
break;
}