'Y']); while ($ar = $rsSites->Fetch()) { if ($ar['DEF'] === 'Y') { return RetailcrmConfigProvider::getProtocol() . $ar['SERVER_NAME']; } } return null; } }