tbrehm
2013-08-23 200f0f4652d29b22f94ee2da39fc98542b2e1ea4
interface/web/sites/web_aliasdomain_edit.php
@@ -143,7 +143,8 @@
      }
        
      // Get the record of the parent domain
      $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".$app->functions->intval(@$this->dataRecord["parent_domain_id"]));
      $parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".$app->functions->intval(@$this->dataRecord["parent_domain_id"]) . " AND ".$app->tform->getAuthSQL('r'));
        if(!$parent_domain || $parent_domain['domain_id'] != @$this->dataRecord['parent_domain_id']) $app->tform->errorMessage .= $app->tform->lng("no_domain_perm");
      
      // Set a few fixed values
      $this->dataRecord["type"] = 'alias';