diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-09-08 18:02:12 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-09-08 18:02:12 +0000 |
commit | bacb5b9a62c475d6583dd3cec87b169859a27335 (patch) | |
tree | c689672b42bd18d3ff344b1321158ed547fb563e /templates/show_songs.inc | |
parent | 23fdc1659cf38e895e76a4f0b4767221db464bfa (diff) | |
download | ampache-bacb5b9a62c475d6583dd3cec87b169859a27335.tar.gz ampache-bacb5b9a62c475d6583dd3cec87b169859a27335.tar.bz2 ampache-bacb5b9a62c475d6583dd3cec87b169859a27335.zip |
new search mojo, only song object type current works...
Diffstat (limited to 'templates/show_songs.inc')
-rw-r--r-- | templates/show_songs.inc | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/templates/show_songs.inc b/templates/show_songs.inc index 0702a157..127b8cde 100644 --- a/templates/show_songs.inc +++ b/templates/show_songs.inc @@ -20,9 +20,9 @@ */ $web_path = conf('web_path'); -?> - +show_clear(); +?> <form name="songs" method="post" enctype="multipart/form-data" action="#"> <table border="0"> <tr><td colspan="2"> @@ -42,12 +42,18 @@ $web_path = conf('web_path'); <th><?php echo _("Action"); ?></th> </tr> <?php - foreach ($song_ids as $song_id) { - - unset($text_class); - $song = new Song($song_id); - $song->format_song(); + /* FIXME: don't even get me started with how many things are wrong with this code */ + foreach ($song_ids as $song_id) { + + if (!is_object($song_id)) { + unset($text_class); + $song = new Song($song_id); + } + else { + $song = $song_id; + } + $song->format_song(); // Still needed crap $totalsize += $song->size; $totaltime += $song->time; |