From 25b1aad8ab931822d52b545e537179f25cc0bbe5 Mon Sep 17 00:00:00 2001 From: agibert Date: Fri, 4 Dec 2015 10:40:41 +0000 Subject: [PATCH] - Fix minor undifined variable bugs, - Add utf-8 support. --- html/lmbrowse.php | 46 +++++++++++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/html/lmbrowse.php b/html/lmbrowse.php index 65d9a5b..828f279 100644 --- a/html/lmbrowse.php +++ b/html/lmbrowse.php @@ -1,8 +1,8 @@ + for( $k = 0; $k < count( $mix_tab); $k++) + { + if( "{$mix_tab[$k]["hide"]}" == "y") + { + $hide_flag="*"; + } + else + { + $hide_flag=""; + } + + $css_row = ( $k + 1 + count( $mix_tab)) % 2 + 3; + + echo " {$mix_tab[$k]["play_type_name"]} "; + } } + echo " Mixes  @@ -3499,7 +3503,15 @@ function lmb_track_body( $play_type, $play_id, $play_priority, $track_id, $skin_ $track_file_name = glob( "{$track_path}/flac/$track_id-*.flac"); $tab = explode( "-", basename( "{$track_file_name[0]}", ".flac")); $track_name = $tab[1]; - $track_mix = $tab[2]; + + if( isset( $tab[2])) + { + $track_mix = $tab[2]; + } + else + { + $track_mix = ""; + } /* --- Introduction --- */ lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path);