wiki testing

This commit is contained in:
2018-10-27 04:31:53 -05:00
parent eed68ff696
commit a0298e469f

View File

@@ -67,9 +67,7 @@ class WikiController extends Controller
$name = strtolower($name);
$name = str_replace(' ', '_', $name);
$check = DB::select('SELECT login FROM wiki_user WHERE login = ?', [$name]);
dd($check);
if(isset($check[0])) {
if(!isset($check[0])) {
return redirect('/dashboard')->with('error', 'Login Not Found!');
}