Fixed handling empty result from email session var

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2021-06-26 14:57:21 +02:00
parent aab7b712d2
commit 4f71c13b3f

View File

@ -647,6 +647,8 @@ class ModelSearchSearch extends Model {
$emails = $session->get($session_var);
if(!$emails) { return $s; }
while(list($k, $v) = each($emails)) {
if($s) { $s .= '| ' . $this->fix_email_address_for_sphinx($v); }
else { $s = $this->fix_email_address_for_sphinx($v); }