mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Empty variable check
This commit is contained in:
parent
0dfbc4c315
commit
fd63a395cf
1 changed files with 4 additions and 0 deletions
|
@ -338,6 +338,10 @@ class Ebook{
|
|||
$searchString = trim(preg_replace('|[^a-zA-Z0-9 ]|ius', ' ', @iconv('UTF-8', 'ASCII//TRANSLIT', $searchString)));
|
||||
$query = trim(preg_replace('|[^a-zA-Z0-9 ]|ius', ' ', @iconv('UTF-8', 'ASCII//TRANSLIT', $query)));
|
||||
|
||||
if($query == ''){
|
||||
return false;
|
||||
}
|
||||
|
||||
if(mb_stripos($searchString, $query) !== false){
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue