diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-10-26 21:09:52 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-10-26 21:09:52 +0100 |
| commit | 359a1edd425f1ad0c93e8390212b478d641029ba (patch) | |
| tree | 0fc17afd59878514fc6c9eedecb72258defad290 /src | |
| parent | ae205d810b62dce5e3e11aef07358c11ded48c77 (diff) | |
Show url if there is no title
Diffstat (limited to 'src')
| -rw-r--r-- | src/templates/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates/index.php b/src/templates/index.php index 148a173..11abe10 100644 --- a/src/templates/index.php +++ b/src/templates/index.php @@ -12,7 +12,7 @@ <a href="/create">Add</a> <ul> <?php foreach ($bookmarks as $bookmark) { ?> - <li><a href="/edit?id=<?php echo $bookmark->id; ?>"><?php echo $bookmark->title; ?></a> | <a href="/delete/confirm?id=<?php echo $bookmark->id; ?>">Delete</a></li> + <li><a href="/edit?id=<?php echo $bookmark->id; ?>"><?php echo $bookmark->title != '' ? $bookmark->title : $bookmark->url; ?></a> | <a href="/delete/confirm?id=<?php echo $bookmark->id; ?>">Delete</a></li> <?php } ?> </ul> </body> |
