From 61c5b503352c983d4e532b5a59e2ae913e53e70c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 1 Feb 2025 11:55:53 +0200 Subject: feat: Add create list button and improve new list page UI --- controllers/list.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'controllers/list.php') diff --git a/controllers/list.php b/controllers/list.php index 7bbb739..0561700 100644 --- a/controllers/list.php +++ b/controllers/list.php @@ -6,11 +6,13 @@ use Exception; function on_post() { global $TOKEN; global $list_status; + global $lid; $list_status = ""; + $lid = 0; try { $uid = Database\Cookie::fromDB($TOKEN)->UID; - Database\ArchiveList::create($uid, $_POST["name"], $_POST["description"]); + $lid = Database\ArchiveList::create($uid, $_POST["name"], $_POST["description"]); } catch(Exception $e) { $list_status = $e; -- cgit v1.2.3