mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 19:28:55 +00:00
Replace ! $request->has with new $request->missing
This commit is contained in:
@@ -20,7 +20,7 @@ class AjaxController extends BasePageController
|
||||
*/
|
||||
public function ajaxAction(Request $request)
|
||||
{
|
||||
if (! $request->has('action')) {
|
||||
if ($request->missing('action')) {
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ class ContentController extends BasePageController
|
||||
|
||||
case 'submit':
|
||||
// Validate and add or update.
|
||||
if (! $request->has('id') || empty($request->input('id'))) {
|
||||
if ($request->missing('id') || empty($request->input('id'))) {
|
||||
$returnid = $contents->add($request->all());
|
||||
} else {
|
||||
$content = $contents->update($request->all());
|
||||
|
||||
@@ -30,7 +30,7 @@ class SiteController extends BasePageController
|
||||
|
||||
switch ($action) {
|
||||
case 'submit':
|
||||
if (! $request->has('book_reqids')) {
|
||||
if ($request->missing('book_reqids')) {
|
||||
$request->merge(['book_reqids' => []]);
|
||||
}
|
||||
$error = '';
|
||||
|
||||
Reference in New Issue
Block a user