mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:51:59 +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