ftimme
2013-01-16 08cc7f673c377bf88897743e340097e93f1e95f4
interface/lib/classes/aps_guicontroller.inc.php
@@ -542,7 +542,7 @@
                    // is not empty for further validation
                    if(!empty($doc_root))
                    {
                        $used_path = $docroot['document_root'];
                        $used_path = $doc_root['document_root'];
                        if(substr($used_path, -1) != '/') $used_path .= '/';
                        
                        $location_for_domain = $app->db->queryOneRecord("SELECT value 
@@ -550,7 +550,7 @@
                            AND instance_id = '".$app->db->quote($instance_domains[$i]['instance_id'])."';");
                        
                        // The location might be empty but the DB return must not be false!
                        if($location_for_domain) $used_path .= $location_for_domain['value'];
                        if($location_for_domain) $used_path .= $location_for_domain['value'];
                        if($new_path == $used_path)
                        {