summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php6
-rw-r--r--templates/show_mpdplay.inc4
2 files changed, 5 insertions, 5 deletions
diff --git a/index.php b/index.php
index 471b7596..021ac610 100644
--- a/index.php
+++ b/index.php
@@ -29,7 +29,7 @@
require_once("modules/init.php");
/* We need to attempt to init the mpd object */
-if ($user->prefs['play_type']) { $myMpd = init_mpd(); }
+if ($user->prefs['play_type']=='mpd') { $myMpd = init_mpd(); }
show_template('header');
@@ -48,10 +48,10 @@ $action = scrub_in($_REQUEST['action']);
<td valign="top">
<table border="0"><!-- Left table -->
<tr>
- <td valign="top" align="right" width="50%">
+ <td valign="top" align="right"> <!-- sigger: why is it a problem to set width=50% -->
<?php show_local_catalog_info(); ?>
</td>
- <td valign="top" align="left" width="50%">
+ <td valign="top" align="left"> <!-- sigger: why is it a problem to set width=50% -->
<?php
if ($user->prefs['play_type'] == 'mpd' && !conf('localplay_menu')) {
show_mpd_control();
diff --git a/templates/show_mpdplay.inc b/templates/show_mpdplay.inc
index 70962a53..89a9b89b 100644
--- a/templates/show_mpdplay.inc
+++ b/templates/show_mpdplay.inc
@@ -34,8 +34,8 @@ global $condPL;
<table border="0" cellpadding="3" cellspacing="0"><!-- MPD Control table -->
<tr>
<td>
- <table border="0" cellpadding="0" cellspacing="0" class="even" align="center">
- <th id="mpd_control" class="table-header"><?php echo _("MPD Play Control"); ?></th>
+ <table id="mpd_control" border="0" cellpadding="0" cellspacing="0" class="even" align="center">
+ <th class="table-header"><?php echo _("MPD Play Control"); ?></th>
<tr>
<td>
<?php ${$myMpd->state} = "class='selected_button'";