Quick try but it might work.... Not tested
osc_add_hook('search_conditions', 'filter_with_phone_search_conditions');
function filter_with_phone_search_conditions($params) {
if (Params::getParam('bPhone') == 1) {
$phoneCondition = DB_TABLE_PREFIX . "t_item.s_contact_phone IS NOT NULL AND " . DB_TABLE_PREFIX . "t_item.s_contact_phone != ''";
if (isset($params['where']) && trim($params['where']) != '') {
$params['where'] .= " AND " . $phoneCondition;
} else {
$params['where'] = $phoneCondition;
}
}
return $params;
}