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

Commit 9a1fe265 authored by Mike Sheldon's avatar Mike Sheldon

Catch exception when generating loved tracks tag cloud

parent 6e3f1106
......@@ -25,9 +25,11 @@ require_once('data/sanitize.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