diff options
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r-- | lib/class/album.class.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index 601b1f9b..bbacf852 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -751,6 +751,9 @@ class Album { } } // if we have PHP:GD + // Default to image/jpg as a guess if there is no passed mime type + $mime = $mime ? $mime : 'image/jpg'; + // Push the image into the database $sql = "REPLACE INTO `album_data` SET `art` = '" . Dba::escape($image) . "'," . " `art_mime` = '" . Dba::escape($mime) . "'" . |