fix variables for xporof_locale and xprof_postcode

This commit is contained in:
Mario 2019-03-23 20:57:22 +01:00
parent c11fbe0868
commit 4d4425a5bf

View File

@ -116,12 +116,12 @@ class Dirsearch extends \Zotlabs\Web\Controller {
$sql_extra .= $this->dir_query_build($joiner,'xchan_name',$name); $sql_extra .= $this->dir_query_build($joiner,'xchan_name',$name);
if($address) if($address)
$sql_extra .= $this->dir_query_build($joiner,'xchan_addr',$address); $sql_extra .= $this->dir_query_build($joiner,'xchan_addr',$address);
if($city) if($locale)
$sql_extra .= $this->dir_query_build($joiner,'xprof_locale',$city); $sql_extra .= $this->dir_query_build($joiner,'xprof_locale',$locale);
if($region) if($region)
$sql_extra .= $this->dir_query_build($joiner,'xprof_region',$region); $sql_extra .= $this->dir_query_build($joiner,'xprof_region',$region);
if($post) if($postcode)
$sql_extra .= $this->dir_query_build($joiner,'xprof_postcode',$post); $sql_extra .= $this->dir_query_build($joiner,'xprof_postcode',$postcode);
if($country) if($country)
$sql_extra .= $this->dir_query_build($joiner,'xprof_country',$country); $sql_extra .= $this->dir_query_build($joiner,'xprof_country',$country);
if($gender) if($gender)