We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c4b5b386 authored by Mike Sheldon's avatar Mike Sheldon

Catch exception when generating loved tracks tag cloud

parent 36e0dc53
......@@ -25,9 +25,11 @@ require_once('data/sanitize.php');
require_once('data/Server.php');
require_once('data/TagCloud.php');
$aTagCloud = TagCloud::GenerateTagCloud('loved_tracks', 'artist');
if ($aTagCloud) {
try {
$aTagCloud = TagCloud::GenerateTagCloud('loved_tracks', 'artist');
$smarty->assign('tagcloud', $aTagCloud);
} catch(Exception $ex) {
// Installation doesn't have any loved tracks yet
}
$smarty->assign('headerfile', 'welcome-header.tpl');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment