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