mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
check if post vars sequence and attributes are really set
This commit is contained in:
parent
efd6b34896
commit
54c9a190f2
|
@ -45,11 +45,18 @@ if ($folder->getAccessMode($user) < M_READWRITE) {
|
||||||
|
|
||||||
$name = $_POST["name"];
|
$name = $_POST["name"];
|
||||||
$comment = $_POST["comment"];
|
$comment = $_POST["comment"];
|
||||||
$sequence = $_POST["sequence"];
|
if(isset($_POST["sequence"])) {
|
||||||
if (!is_numeric($sequence)) {
|
$sequence = $_POST["sequence"];
|
||||||
$sequence = "keep";
|
if (!is_numeric($sequence)) {
|
||||||
}
|
$sequence = "keep";
|
||||||
$attributes = $_POST["attributes"];
|
}
|
||||||
|
} else {
|
||||||
|
$sequence = "keep";
|
||||||
|
}
|
||||||
|
if(isset($_POST["attributes"]))
|
||||||
|
$attributes = $_POST["attributes"];
|
||||||
|
else
|
||||||
|
$attributes = array();
|
||||||
|
|
||||||
$wasupdated = false;
|
$wasupdated = false;
|
||||||
if(($oldname = $folder->getName()) != $name) {
|
if(($oldname = $folder->getName()) != $name) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user