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,
|
result: ret,
|
||||||
totals: await lib.countf0cks(),
|
totals: await lib.countf0cks(),
|
||||||
searchstring: tag,
|
searchstring: tag,
|
||||||
session: req.session,
|
|
||||||
tmp: null
|
tmp: null
|
||||||
}, req)
|
}, req)
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@include(snippets/header)
|
@include(snippets/header)
|
||||||
<h1 style="text-align: center">f0ckgle</h1>
|
<h1 style="text-align: center">f0ckgle</h1>
|
||||||
<form action="/search" class="admin-search">
|
<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>
|
</form>
|
||||||
<div class="results">
|
<div class="results">
|
||||||
@if(result)
|
@if(result)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user