Пример #1
0
 function IsSubAdminExist($subAdmin)
 {
     if (strtolower($subAdmin->Login) === 'mailadm' || strlen(AP_DEMO_LOGIN) > 0 && strtolower($subAdmin->Login) === AP_DEMO_LOGIN) {
         return true;
     }
     if (!$this->_connector->Execute($this->_commandCreator->IsSubAdminExist($subAdmin))) {
         return true;
     }
     $row = $this->_connector->GetNextRecord();
     return $row && (int) $row->sabadmin_cnt > 0;
 }