edit.php
changeset 55 a885f557678f
parent 47 ae140472d97c
child 56 6db9adfa86ac
equal deleted inserted replaced
54:e858e7e1aab4 55:a885f557678f
    28 		$recordOwnerError = 'No records where selected to assign an sub-owner.';
    28 		$recordOwnerError = 'No records where selected to assign an sub-owner.';
    29 	} else {
    29 	} else {
    30 		foreach ($_POST["rowid"] as $x_user => $x_value){
    30 		foreach ($_POST["rowid"] as $x_user => $x_value){
    31 			$x_userid = $db->queryOne("SELECT id FROM record_owners WHERE user_id = '".$_POST["userid"]."' AND record_id='".$x_value."'");
    31 			$x_userid = $db->queryOne("SELECT id FROM record_owners WHERE user_id = '".$_POST["userid"]."' AND record_id='".$x_value."'");
    32 			if (empty($x_userid)) {
    32 			if (empty($x_userid)) {
    33 				$db->query("INSERT INTO record_owners SET user_id = '".$_POST["userid"]."',record_id='".$x_value."'");
    33 				$db->query("INSERT INTO record_owners (user_id, record_id) VALUES ('".$_POST["userid"]."','".$x_value."')");
    34 			}
    34 			}
    35 		}
    35 		}
    36 	}
    36 	}
    37 }
    37 }
    38 if(isset($_POST['change_slave_master']) && is_numeric($_POST["domain"]) && level(5))
    38 if(isset($_POST['change_slave_master']) && is_numeric($_POST["domain"]) && level(5))