diff --git a/includes/account.php b/includes/account.php index aae58a0..4e4fe05 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1907,7 +1907,7 @@ } if($oldid == 54 || ($id == 53 && $_REQUEST['action'] != "") || ($id == 54 && $_REQUEST['action'] != "" && - $_REQUEST['action'] != "aliases" && $_REQUEST['action'] != "edit")) + $_REQUEST['action'] != "aliases" && $_REQUEST['action'] != "edit" && $_REQUEST['action'] != "add")) { $id = 53; $ccid = intval($_REQUEST['ccid']); @@ -1943,7 +1943,7 @@ unset($_REQUEST['ccid']); unset($_REQUEST['locid']); unset($_REQUEST['action']); - } else if($ccid > 0 && $_REQUEST['action'] == "add" && $name == htmlentities($name)) { + } else if($ccid > 0 && $_REQUEST['action'] == "add" && $name == htmlentities($name) && $name != "") { $query = "insert into `regions` set `ccid`='$ccid', `name`='$name'"; mysql_query($query); $row = mysql_fetch_assoc(mysql_query("select * from `locations` where `id`='$locid'")); diff --git a/pages/index/5.php b/pages/index/5.php index 3a0a9b0..39e1786 100644 --- a/pages/index/5.php +++ b/pages/index/5.php @@ -55,7 +55,7 @@ -

+

", "")?>