Ticket #373: VirtualHost.php.diff

File VirtualHost.php.diff, 0.9 KB (added by leandro@…, 14 years ago)

Patch against wifidog/classes/VirtualHost.php

  • VirtualHost.php

     
    187187        $retVal = null; 
    188188        $serverRow = null; 
    189189 
    190         $sql = "SELECT default_virtual_host FROM server ORDER BY creation_date LIMIT 1"; 
     190        $sql = "SELECT default_virtual_hosts FROM server ORDER BY creation_date LIMIT 1"; 
    191191        $db->execSqlUniqueRes($sql, $serverRow, false); 
    192192 
    193193        if ($serverRow == null) { 
     
    739739            } else { 
    740740                $_id = $db->escapeString($this->getId()); 
    741741 
    742                 if (!$db->execSqlUpdate("DELETE FROM virtual_host WHERE virtual_host_id='{$_id}'", false)) { 
     742                if (!$db->execSqlUpdate("DELETE FROM virtual_hosts WHERE virtual_host_id='{$_id}'", false)) { 
    743743                    $errmsg = _('Could not delete server!'); 
    744744                } else { 
    745745                    $retVal = true;