Commit 4758c1d8 authored by Alexandre Bailly's avatar Alexandre Bailly

Displays all karaoke if the list is not loaded from the iframe

parent 7e58cdfc
Pipeline #8440 passed with stage
in 26 seconds
......@@ -81,7 +81,7 @@
$hasResults = false;
if(isset($_GET['s'])) {
if(!isset($_GET['frame']) || isset($_GET['s'])) {
// Output list of videos
foreach ($names as $series => $video_array)
{
......@@ -93,7 +93,8 @@
// Skip r18 if not defined
if(!isset($_GET['r18']) && isset($data['r18'])) continue;
if((stripos($series, $_GET['s']) !== false)
if(!isset($_GET['frame'])
|| (stripos($series, $_GET['s']) !== false)
|| (stripos(iconv('UTF-8', 'ASCII//TRANSLIT',$data['song']['title']), iconv('UTF-8', 'ASCII//TRANSLIT',$_GET['s'])) !== false)
|| (stripos(iconv('UTF-8', 'ASCII//TRANSLIT',$data['song']['artist']), iconv('UTF-8', 'ASCII//TRANSLIT',$_GET['s'])) !== false)
|| (stripos(iconv('UTF-8', 'ASCII//TRANSLIT',$data['subtitles']), iconv('UTF-8', 'ASCII//TRANSLIT',$_GET['s'])) !== false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment