View Single Post
  #9  
Old 22nd May 2008, 11:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,037
Thanks: 841
Thanked 5,659 Times in 4,466 Posts
Default

Quote:
Does anybody know why is this ?
Clients are not allowed to delete domains, this makes sense as they would not be able to create it again.

Please try this:
Code:
if(!isset($go_api->groups)) {
  $tmp_groups = $go_api->groups->myGroups();
  if(!is_array($tmp_groups)) {
    $sql = "UPDATE isp_nodes SET status = 1 WHERE doc_id = '$doc_id' AND doctype_id = '$doctype_id'";
    $go_api->db->query($sql);
    $go_api->errorMessage($go_api->lng("error_domain_delete_client").$go_api->lng("weiter_link"));
  }
}
This should solve the problem as we do not have to query groups when we use the remoting framework and the group code is not loaded at all in this case.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote