summaryrefslogtreecommitdiffstats
path: root/lib/class/catalog.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r--lib/class/catalog.class.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index 1e58642e..81bf8873 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -515,11 +515,16 @@ class Catalog {
// Return results
$results = $album->find_art($options,1);
-
+
if (count($results)) {
// Pull the string representation from the source
$image = get_image_from_source($results['0']);
- $album->insert_art($image,$results['0']['mime']);
+ if (strlen($image) > '5') {
+ $album->insert_art($image,$results['0']['mime']);
+ }
+ else {
+ debug_event('album_art','Image less then 5 chars, not inserting','3');
+ }
$art_found++;
}