Skip to content

Commit

Permalink
fixed undefined variables
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Feb 22, 2015
1 parent b96743e commit b3f9ba9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spotify-mini-player/src/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ function mainMenu($w, $query, $settings, $db, $update_in_progress)
if ($update_in_progress == true) {
$in_progress_data = $w->read('update_library_in_progress');
$update_library_in_progress_words = explode('', $in_progress_data);
$elapsed_time = time() - $update_library_in_progress_words[3];
if (startsWith($update_library_in_progress_words[0], 'Init')) {
$w->result(null, $w->data() . '/update_library_in_progress', 'Initialization phase since ' . beautifyTime($elapsed_time, true) . ' : ' . floatToSquares(0), 'Waiting for Spotify servers to return required data', './images/update_in_progress.png', 'no', null, '');
} else {
Expand Down Expand Up @@ -6349,6 +6350,13 @@ function thirdDelimiterAdd($w, $query, $settings, $db, $update_in_progress)
$tmp = explode('', $words[1]);
$uri = $tmp[0];

$track_name = '';
$track_uri = '';
$album_name = '';
$album_uri = '';
$playlist_name = '';
$playlist_uri = '';

$href = explode(':', $uri);
if ($href[1] == 'track') {
$type = 'track';
Expand Down

0 comments on commit b3f9ba9

Please sign in to comment.