mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Fixes #4048 - Valid HTML when no search results are found
Moved alert <div> outside of <ul> tags.
This commit is contained in:
16
search.php
16
search.php
@@ -840,10 +840,18 @@ class search_front extends e_shortcode
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// print_a($ps);
|
// print_a($ps);
|
||||||
$idkey = str_replace('_', '-', $key);
|
if($ps['results'] == "0")
|
||||||
$text .= '<ul id="search-results-'.$idkey.'" class="list-unstyled search-block">';
|
{
|
||||||
$text .= $ps['text'];
|
$text .= $ps['text'];
|
||||||
$text .= '</ul>';
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$idkey = str_replace('_', '-', $key);
|
||||||
|
$text .= '<ul id="search-results-'.$idkey.'" class="list-unstyled search-block">';
|
||||||
|
$text .= $ps['text'];
|
||||||
|
$text .= '</ul>';
|
||||||
|
}
|
||||||
|
|
||||||
$results = $ps['results'];
|
$results = $ps['results'];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user