diff --git a/install/install.php b/install/install.php
index 6194e556a101b52fb407b50d6368eea8c187e9e3..b94c1c7f6f78346b3b63ddb4583c766b2d47d7b3 100644
--- a/install/install.php
+++ b/install/install.php
@@ -162,7 +162,7 @@ if(!is_writable(dirname(ISPC_LOG_FILE))){
 
 //** Check for ISPConfig 2.x versions
 if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) {
-	if(is_dir('/home/admispconfig') {
+	if(is_dir('/home/admispconfig')) {
 		die('This software cannot be installed on a server which runs ISPConfig 2.x.');
 	} else {
 		die('This software cannot be installed on a server which runs ISPConfig 2.x; the presence of the /root/ispconfig/ directory may indicate an ISPConfig 2.x installation, otherwise you can remove or rename it to continue.');
diff --git a/install/update.php b/install/update.php
index d584c112cfd8cc743299d8a9289cde1a4dde16cc..4639615801635ec03f0ccfa2832999edb9cd1749 100644
--- a/install/update.php
+++ b/install/update.php
@@ -96,7 +96,7 @@ require_once 'lib/classes/tpl.inc.php';
 
 //** Check for ISPConfig 2.x versions
 if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) {
-	if(is_dir('/home/admispconfig') {
+	if(is_dir('/home/admispconfig')) {
 		die('This software cannot be installed on a server which runs ISPConfig 2.x.');
 	} else {
 		die('This software cannot be installed on a server which runs ISPConfig 2.x; the presence of the /root/ispconfig/ directory may indicate an ISPConfig 2.x installation, otherwise you can remove or rename it to continue.');