check if POST var attributes is set

This commit is contained in:
Uwe Steinmann 2013-02-14 13:10:28 +01:00
parent 0ffe373e82
commit 18b89fcb33

View File

@ -56,7 +56,10 @@ if (!is_numeric($sequence)) {
$name = $_POST["name"];
$comment = $_POST["comment"];
$attributes = $_POST["attributes"];
if(isset($_POST["attributes"]))
$attributes = $_POST["attributes"];
else
$attributes = array();
$subFolder = $folder->addSubFolder($name, $comment, $user, $sequence, $attributes);
if (is_object($subFolder)) {