Empty cover image fix
-
When last.fm does not have a cover for the track, gLastFM throws some PHP errors on the frontend, that some variables are not available. Easily to fix by initialising the variables with the placeholder images.
//cover url, set default entries for all variables $picurl = GLASTFM_PLUGIN_URL . 'theme/empty_' . $image_size . '.png'; $picurl_small = GLASTFM_PLUGIN_URL . 'theme/empty_0.png'; $picurl_medium = GLASTFM_PLUGIN_URL . 'theme/empty_1.png'; $picurl_large = GLASTFM_PLUGIN_URL . 'theme/empty_2.png'; $picurl_extralarge = GLASTFM_PLUGIN_URL . 'theme/empty_3.png';
- The topic ‘Empty cover image fix’ is closed to new replies.