fix undefined if searchstring is empty
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user