diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-05 06:19:22 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-05 06:19:22 +0000 |
commit | 6daae3271c5126c2cd4c08b98b451ebe51fa90e0 (patch) | |
tree | fc2f1527670ae6fd9d9f7b56529e5938b808fe40 /templates/show_play_selected.inc.php | |
parent | 75aa0cf62494939224098ca60bbef000b21a3c23 (diff) | |
download | ampache-6daae3271c5126c2cd4c08b98b451ebe51fa90e0.tar.gz ampache-6daae3271c5126c2cd4c08b98b451ebe51fa90e0.tar.bz2 ampache-6daae3271c5126c2cd4c08b98b451ebe51fa90e0.zip |
fixed up some more playlist stuff
Diffstat (limited to 'templates/show_play_selected.inc.php')
-rw-r--r-- | templates/show_play_selected.inc.php | 6 |
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> |