diff options
author | spocky <spocky@ampache> | 2007-01-06 00:45:06 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2007-01-06 00:45:06 +0000 |
commit | b4cbb5a2291494b672de23da716113cca1222f7e (patch) | |
tree | 4342ea4000de710e47d3f96233a217b526ff2256 /lib/ui.lib.php | |
parent | dfde4e4ef702a2a928031bd5a8a7e30fc1cbdfd8 (diff) | |
download | ampache-b4cbb5a2291494b672de23da716113cca1222f7e.tar.gz ampache-b4cbb5a2291494b672de23da716113cca1222f7e.tar.bz2 ampache-b4cbb5a2291494b672de23da716113cca1222f7e.zip |
fixed a minor issue with truncated genres in sidebar
cleaned up *cough* a little bit *cough* base css file (remind me not to clean anything like this one).
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index bd23daf9..af9bca40 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -893,12 +893,12 @@ function show_genre_pulldown ($name,$selected='',$size=1,$width=0,$style='') { while ($r = mysql_fetch_assoc($db_result)) { - $r['name'] = scrub_out($r['name']); - if ($width > 0) { $r['name'] = truncate_with_ellipsis($r['name'],$width); } + $r['name'] = scrub_out($r['name']); + if ( $selected == $r['id'] ) { echo "\t<option value=\"" . $r['id'] . "\" selected=\"selected\">" . $r['name'] . "</option>\n"; } |