CAdvContract::DeleteUserLink: Bitrix method

      
<?php 
//  CAdvContract :: DeleteUserLink()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:1121

    
public static function DeleteUserLink($CONTRACT_ID$where="")
    {
        
$err_mess = (CAdvContract_all::err_mess())."<br>Function: DeleteUserLink<br>Line: ";
        global 
$DB;
        
$CONTRACT_ID intval($CONTRACT_ID);
        if (
$CONTRACT_ID<=0)
            return 
false;
        
$strSql "DELETE FROM b_adv_contract_2_user WHERE CONTRACT_ID = $CONTRACT_ID ".$where;
        
$DB->Query($strSqlfalse$err_mess.__LINE__);
        return 
true;
    }