Skip to content

Commit 0daf969

Browse files
committed
Don't redefine what's already available
1 parent 16747fe commit 0daf969

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/templates/Document/View.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ $attachments = $this->getContext()->attachments;
1212
$comments = $this->getContext()->comments;
1313
$object = $this->getContext()->document;
1414
$object_id = $this->getContext()->document_id;
15-
$logged_in = $this->getContext()->user;
16-
$logged_in_id = ($logged_in ? $logged_in->getId() : null);
1715

1816
$logged_in = (
1917
isset($_SESSION['user_id']) ? new User($_SESSION['user_id']) : null
2018
);
19+
$logged_in_id = ($logged_in ? $logged_in->getId() : null);
2120

2221
$title = "Document Not Found";
2322
$description = "The requested document does not exist or could not be found.";

0 commit comments

Comments
 (0)