inc/users.inc.php
changeset 67 2f8c29fc5e2e
parent 65 ce1c4d5e1576
child 71 e1b918eaf69a
--- a/inc/users.inc.php	Sat Jan 05 21:45:44 2008 +0000
+++ b/inc/users.inc.php	Sun Jan 06 11:49:17 2008 +0000
@@ -214,7 +214,9 @@
 		{
 			error(ERR_INV_EMAIL);
 		}
-
+		if ($active != 1) {
+			$active = 0;
+		}
 		$db->query("INSERT INTO users (username, password, fullname, email, description, level, active) VALUES (".$db->quote($user).", '" . md5($password) . "', ".$db->quote($fullname).", ".$db->quote($email).", ".$db->quote($description).", ".$db->quote($level).", ".$db->quote($active).")");
 		return true;
 	}
@@ -240,7 +242,9 @@
 	{
 		error(ERR_INV_EMAIL);
 	}
-
+	if ($active != 1) {
+		$active = 0;
+	}
 	$sqlquery = "UPDATE users set username=".$db->quote($user).", fullname=".$db->quote($fullname).", email=".$db->quote($email).", level=".$db->quote($level).", description=".$db->quote($description).", active=".$db->quote($active);
 
 	if($password != "")