diff options
Diffstat (limited to 'views/list/update/index.php')
| -rw-r--r-- | views/list/update/index.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/views/list/update/index.php b/views/list/update/index.php index 6fa91e1..b3737f0 100644 --- a/views/list/update/index.php +++ b/views/list/update/index.php @@ -4,12 +4,10 @@ <?php $user = null; $webpage = null; - $lists = null; try { $user = Database\Cookie::fromDB($TOKEN); $webpage = Database\Webpage::fromDBwid($_GET['wid']); - $lists = Database\ArchiveList::allListsByUser($user->UID); } catch (Exception $e) {} ?> @@ -22,7 +20,7 @@ <form action="/list" method="GET"> <input type="hidden" name="method" value="PATCH"> <select name="lid"> - <?php foreach ($lists as $list): ?> + <?php foreach ($user->archiveLists() as $list): ?> <option value="<?= $list->LID ?>"><?= $list->Name ?></option> <?php endforeach; ?> </select> |
