check for empty attributes array (Bug #150)

This commit is contained in:
Uwe Steinmann 2014-04-09 21:29:13 +02:00
parent 4d094b2920
commit 7f8d35bb38

View File

@ -59,7 +59,10 @@ $sequence = str_replace(',', '.', $_POST["sequence"]);
if (!is_numeric($sequence)) {
$sequence="keep";
}
$attributes = $_POST["attributes"];
if(isset($_POST["attributes"]))
$attributes = $_POST["attributes"];
else
$attributes = array();
if (($oldname = $document->getName()) != $name) {
if($document->setName($name)) {