summaryrefslogtreecommitdiffstats
path: root/templates/show_play_selected.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_play_selected.inc.php')
-rw-r--r--templates/show_play_selected.inc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/show_play_selected.inc.php b/templates/show_play_selected.inc.php
index 1f7ac16c..d85997d6 100644
--- a/templates/show_play_selected.inc.php
+++ b/templates/show_play_selected.inc.php
@@ -57,14 +57,15 @@ function ToBatch(action)
-->
</td>
</tr>
-<?php if ($GLOBALS['playlist_id']) { ?>
+<?php if (is_object($GLOBALS['playlist'])) { ?>
<tr>
<td>
+ <input type="hidden" name="playlist_id" value="<?php echo $GLOBALS['playlist']->id; ?>" />
<input class="button" type="button" name="super_action" value="<?php echo _("Set Track Numbers"); ?>" onclick="return ToPlaylist('set_track_numbers');" />
<input class="button" type="button" name="super_action" value="<?php echo _("Remove Selected Tracks"); ?>" onclick="return ToPlaylist('remove_song');" />
</td>
</tr>
-<?php } ?>
+<?php } else { ?>
<tr align="center">
<td colspan="2">
<?php echo _("Playlist"); ?>: <input type="button" name="super_action" value="<?php echo _("Add to"); ?>" onclick="return ToPlaylist('add_to');" />
@@ -73,4 +74,5 @@ function ToBatch(action)
<input class="button" type="button" name="super_action" value="<?php echo _("Edit"); ?>" onclick="return ToPlaylist('edit');" />
</td>
</tr>
+<?php } ?>
</table>