fix undefined if searchstring is empty
This commit is contained in:
parent
68ce51b892
commit
7b2ad52fe0
|
@ -36,7 +36,6 @@ export default (router, tpl) => {
|
|||
result: ret,
|
||||
totals: await lib.countf0cks(),
|
||||
searchstring: tag,
|
||||
session: req.session,
|
||||
tmp: null
|
||||
}, req)
|
||||
});
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@include(snippets/header)
|
||||
<h1 style="text-align: center">f0ckgle</h1>
|
||||
<form action="/search" class="admin-search">
|
||||
<input type="text" name="tag" value="{!! searchstring !!}" /><button type="submit"><b>f0ck</b></button>
|
||||
<input type="text" name="tag" value="{!! searchstring || '' !!}" /><button type="submit"><b>f0ck</b></button>
|
||||
</form>
|
||||
<div class="results">
|
||||
@if(result)
|
||||
|
|
Loading…
Reference in New Issue
Block a user