diff --git a/server/models/Log.php b/server/models/Log.php index 5112c124..3faf7ad6 100755 --- a/server/models/Log.php +++ b/server/models/Log.php @@ -39,7 +39,10 @@ class Log extends DataStore { if($author === null) { $author = Controller::getLoggedUser(); - if(!$author->isNull()) $authorName = $author->name; + } + + if(!$author->isNull()) { + $authorName = $author->name; } $log = new Log();