Fix : search contact by phone was mistaking phone pro and phone perso
This commit is contained in:
parent
269a59e11a
commit
3499c69b7d
@ -172,11 +172,11 @@ if (strlen($search_phone))
|
|||||||
}
|
}
|
||||||
if (strlen($search_phoneper))
|
if (strlen($search_phoneper))
|
||||||
{
|
{
|
||||||
$sql .= " AND p.phone LIKE '%".$db->escape($search_phoneper)."%'";
|
$sql .= " AND p.phone_perso LIKE '%".$db->escape($search_phoneper)."%'";
|
||||||
}
|
}
|
||||||
if (strlen($search_phonepro))
|
if (strlen($search_phonepro))
|
||||||
{
|
{
|
||||||
$sql .= " AND p.phone_perso LIKE '%".$db->escape($search_phonepro)."%'";
|
$sql .= " AND p.phone LIKE '%".$db->escape($search_phonepro)."%'";
|
||||||
}
|
}
|
||||||
if (strlen($search_phonemob))
|
if (strlen($search_phonemob))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user