Тогда еще это добавьте
protected function setAdvAbonent($id, $user_id = 0){
if ( $user_id === 0 ) {
$user_id = $this->getSessionUserId();
}
if ($this->getConfigValue('apps.billing.enable')) {
if (file_exists(SITEBILL_DOCUMENT_ROOT . '/apps/tariff/tariff.xml') and $this->getConfigValue('apps.tariff.enable') and file_exists(SITEBILL_DOCUMENT_ROOT . '/apps/billing/billing.xml')) {
require_once(SITEBILL_DOCUMENT_ROOT . '/apps/billing/lib/billing.php');
$billing = new Billing();
$billing->setAdvAbonentState($user_id, $id);
}
}
}