mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:00:11 +01:00
Fixed handling empty result from email session var
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
aab7b712d2
commit
4f71c13b3f
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user