mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-17 14:30:58 +00:00
check if POST var attributes is set
This commit is contained in:
parent
0ffe373e82
commit
18b89fcb33
|
@ -56,7 +56,10 @@ if (!is_numeric($sequence)) {
|
||||||
|
|
||||||
$name = $_POST["name"];
|
$name = $_POST["name"];
|
||||||
$comment = $_POST["comment"];
|
$comment = $_POST["comment"];
|
||||||
$attributes = $_POST["attributes"];
|
if(isset($_POST["attributes"]))
|
||||||
|
$attributes = $_POST["attributes"];
|
||||||
|
else
|
||||||
|
$attributes = array();
|
||||||
$subFolder = $folder->addSubFolder($name, $comment, $user, $sequence, $attributes);
|
$subFolder = $folder->addSubFolder($name, $comment, $user, $sequence, $attributes);
|
||||||
|
|
||||||
if (is_object($subFolder)) {
|
if (is_object($subFolder)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user