diff --git a/include/staff/directory.inc.php b/include/staff/directory.inc.php index d1c07f439dfc91a1612bb408e03eb88e9a48b928..5f5707ef4c58c8ae085060d8476ea63d02c269d3 100644 --- a/include/staff/directory.inc.php +++ b/include/staff/directory.inc.php @@ -11,7 +11,7 @@ if($_REQUEST['q']) { if($searchTerm){ $query=db_real_escape($searchTerm,false); //escape the term ONLY...no quotes. if(is_numeric($searchTerm)){ - $where.=" AND (staff.phone LIKE '%$query%' OR staff.phone_ext LIKE '%$query%' staff.mobile LIKE '%$query%') "; + $where.=" AND (staff.phone LIKE '%$query%' OR staff.phone_ext LIKE '%$query%' OR staff.mobile LIKE '%$query%') "; }elseif(strpos($searchTerm,'@') && Validator::is_email($searchTerm)){ $where.=" AND staff.email='$query'"; }else{