aboutsummaryrefslogtreecommitdiff
path: root/views/list/update
diff options
context:
space:
mode:
Diffstat (limited to 'views/list/update')
-rw-r--r--views/list/update/index.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/views/list/update/index.php b/views/list/update/index.php
index 9374aef..e8b562c 100644
--- a/views/list/update/index.php
+++ b/views/list/update/index.php
@@ -1,14 +1,11 @@
<?php
- require_login();
-
+ $user = require_login();
$list = null;
$author = null;
- $user = null;
try {
$list = Database\ArchiveList::fromDB($_GET['lid'] ?? -1);
$author = Database\User::fromDBuid($list->AuthorUID);
- $user = Database\Cookie::fromDB($TOKEN);
}
catch(Exception $e) {}
?>