fix syntax error (Closes: #358)

This commit is contained in:
Uwe Steinmann 2017-10-16 09:04:01 +02:00
parent 578bb7c896
commit bd4b85d15e

View File

@ -38,7 +38,7 @@ class SeedDMS_Controller_EditDocument extends SeedDMS_Controller_Common {
$result = $this->callHook('editDocument', $document);
if($result === null) {
$name = $this->params['name'];
$oldname = $document->getName());
$oldname = $document->getName();
if($oldname != $name)
if(!$document->setName($name))
return false;