Fix type mistake

This commit is contained in:
gplane 2017-04-24 17:16:54 +08:00
parent fdea88eb2b
commit 4311af2a5f

View File

@ -56,7 +56,7 @@ class SkinlibController extends Controller
->merge($textures->where('uploader', $this->user->uid)); ->merge($textures->where('uploader', $this->user->uid));
} }
} else { } else {
$textures = $textures->where('public', '1'); $textures = $textures->where('public', 1);
} }
$total_pages = ceil($textures->count() / 20); $total_pages = ceil($textures->count() / 20);
@ -88,7 +88,7 @@ class SkinlibController extends Controller
} else { } else {
$textures = Texture::like('name', $q) $textures = Texture::like('name', $q)
->where('type', $filter) ->where('type', $filter)
->where('public', '1') ->where('public', 1)
->orderBy($sort_by, 'desc')->get(); ->orderBy($sort_by, 'desc')->get();
} }
@ -99,7 +99,7 @@ class SkinlibController extends Controller
->merge($textures->where('uploader', $this->user->uid)); ->merge($textures->where('uploader', $this->user->uid));
} }
} else { } else {
$textures = $textures->where('public', '1'); $textures = $textures->where('public', 1);
} }
return view('skinlib.search')->with('user', $this->user) return view('skinlib.search')->with('user', $this->user)