diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-26 22:18:56 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-26 22:24:48 +0200 |
| commit | 32f3eadcc72a2c6ef3e732cecbc0706e7cbb267c (patch) | |
| tree | 98d869f991b9ad805bcda7806f9f2ef18b59f882 /views/list | |
| parent | 426d1df08277d349e2117ec93e0d0ae76af571e6 (diff) | |
| download | nowayforward_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')
| -rw-r--r-- | views/list/index.php | 2 |
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) {} |
