Commit e0ece00d7dd9731462d6a4334cbce0fa48b826c5

Authored by root
1 parent 05fbc816

Slave zone bugfix

Showing 1 changed file with 2 additions and 1 deletions
src/slave_zonewrite.php
@@ -2,12 +2,13 @@ @@ -2,12 +2,13 @@
2 require_once "include.php"; 2 require_once "include.php";
3 3
4 $i = intval($_GET['i']); 4 $i = intval($_GET['i']);
  5 +
5 $name = (isset($_POST['name']) && (trim($_POST['name']) > '')) ? trim($_POST['name']) : ''; 6 $name = (isset($_POST['name']) && (trim($_POST['name']) > '')) ? trim($_POST['name']) : '';
6 $owner = intval($_POST['owner']); 7 $owner = intval($_POST['owner']);
7 $master = (isset($_POST['master']) && (trim($_POST['master']) > '')) ? trim($_POST['master']) : ''; 8 $master = (isset($_POST['master']) && (trim($_POST['master']) > '')) ? trim($_POST['master']) : '';
8 9
9 if ((($i * $owner) > 0) && ($name > '') && ($master > '')) { 10 if ((($i * $owner) > 0) && ($name > '') && ($master > '')) {
10 - if ($user->isOwned($i, 'master', 'live')) { 11 + if ($user->isOwned($i, 'slave', 'live')) {
11 $sz = new slaveZone(array( 12 $sz = new slaveZone(array(
12 'id' => $i, 13 'id' => $i,
13 'name' => $name, 14 'name' => $name,