From d062c991405b38b22485517b033480e5514eae9e Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 14 Dec 2008 16:20:33 -0500
Subject: [PATCH] Fixed min_uid bug when deleting users.

---
 server/plugins-available/shelluser_base_plugin.inc.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/plugins-available/shelluser_base_plugin.inc.php b/server/plugins-available/shelluser_base_plugin.inc.php
index a36c636..91f9f25 100755
--- a/server/plugins-available/shelluser_base_plugin.inc.php
+++ b/server/plugins-available/shelluser_base_plugin.inc.php
@@ -126,7 +126,7 @@
 		
 		// Get the UID of the user
 		$userid = intval($app->system->getuid($data['old']['username']));
-		if($userid > 999) {
+		if($userid > $this->min_uid) {
 			$command = 'userdel';
 			$command .= ' '.escapeshellcmd($data['old']['username']);
 			

--
Gitblit v1.9.1