aboutsummaryrefslogtreecommitdiff
path: root/controllers/list.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-01 11:55:53 +0200
committerSyndamia <kamen@syndamia.com>2025-02-01 11:55:53 +0200
commit61c5b503352c983d4e532b5a59e2ae913e53e70c (patch)
tree15ceba74eae8a30b413e56a64725d707a89554be /controllers/list.php
parent0d87935bfd38f0cabecfaff374bd5ead221a494c (diff)
downloadnowayforward_human-61c5b503352c983d4e532b5a59e2ae913e53e70c.tar
nowayforward_human-61c5b503352c983d4e532b5a59e2ae913e53e70c.tar.gz
nowayforward_human-61c5b503352c983d4e532b5a59e2ae913e53e70c.zip
feat: Add create list button and improve new list page UI
Diffstat (limited to 'controllers/list.php')
-rw-r--r--controllers/list.php4
1 files changed, 3 insertions, 1 deletions
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;