Ticket #3172: mythweb-music-allrandom-empty-pl.patch

File mythweb-music-allrandom-empty-pl.patch, 730 bytes (added by otto at kolsi dot fi, 14 years ago)
  • modules/music/mp3act_functions.php

     
    13291329{
    13301330  $output = array(0 => 1);
    13311331  // Check to see if $items matches our REGEXP.
    1332   if (!preg_match('/^[0-9]+(,[0-9]+)*$/', $items))
     1332  if ($type != 'all' && !preg_match('/^[0-9]+(,[0-9]+)*$/', $items))
    13331333  {
    13341334    return $output;
    13351335  }
     
    14711471      mysql_free_result($result);
    14721472    }
    14731473  }
     1474
     1475  if($tmp == '')
     1476    return '';
     1477
    14741478  session_cache_limiter('nocache');
    14751479  header('Content-Type: audio/mpegurl;');
    14761480  header('Content-Disposition: inline; filename="playlist.m3u"');