Changeset 11773

Show
Ignore:
Timestamp:
08/28/07 14:44:28 (1 year ago)
Author:
piotras
Message:

Constructor throws exception when host name is empty

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/data/midgard_setup_vhost.php

    r11691 r11773  
    3333        $this->prefix = $prefix; 
    3434        $this->config = &$config; 
     35 
     36        if(!$this->name || $this->name == '') 
     37            throw new Exception("Failed to initialize new virtual host with empty name", 0); 
    3538 
    3639        if(MIDGARD_SETUP_APACHE_LIBEXEC_PATH == "")