current_track_id; $playlist= $mpd->playlist; if($cur_track !=-1) if ($playlist[$cur_track]['name']==$playlist[$cur_track]['title']) { echo htmlentities(cut_file($playlist[$cur_track]['name'])); } else { echo htmlentities($playlist[$cur_track]['title']); } else echo "No Track selected"; ?>