aboutsummaryrefslogtreecommitdiff
path: root/views/list/index.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-26 22:18:56 +0200
committerSyndamia <kamen@syndamia.com>2025-01-26 22:24:48 +0200
commit32f3eadcc72a2c6ef3e732cecbc0706e7cbb267c (patch)
tree98d869f991b9ad805bcda7806f9f2ef18b59f882 /views/list/index.php
parent426d1df08277d349e2117ec93e0d0ae76af571e6 (diff)
downloadnowayforward_human-32f3eadcc72a2c6ef3e732cecbc0706e7cbb267c.tar
nowayforward_human-32f3eadcc72a2c6ef3e732cecbc0706e7cbb267c.tar.gz
nowayforward_human-32f3eadcc72a2c6ef3e732cecbc0706e7cbb267c.zip
feat(views/list): Don't crash on missing LID
Diffstat (limited to 'views/list/index.php')
-rw-r--r--views/list/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/list/index.php b/views/list/index.php
index 01c18b4..79402ec 100644
--- a/views/list/index.php
+++ b/views/list/index.php
@@ -3,7 +3,7 @@
$author = null;
try {
- $list = Database\ArchiveList::fromDB($lid);
+ $list = Database\ArchiveList::fromDB($lid ?? -1);
$author = Database\User::fromDBuid($list->AuthorUID);
}
catch(Exception $e) {}