From 403dca154c6b539de221f9e16174a0fdd0a1e896 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 5 Feb 2021 23:41:32 +0300 Subject: initial WIP for php8; bump php version requirement to 7.0 --- backend.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 4ee4b7862..dec79f46f 100644 --- a/backend.php +++ b/backend.php @@ -3,7 +3,9 @@ get_include_path()); $op = $_REQUEST["op"]; - @$method = $_REQUEST['subop'] ? $_REQUEST['subop'] : $_REQUEST["method"]; + $method = !empty($_REQUEST['subop']) ? + $_REQUEST['subop'] : + $_REQUEST["method"] ?? false; if (!$method) $method = 'index'; @@ -19,7 +21,7 @@ return; } - @$csrf_token = $_POST['csrf_token']; + $csrf_token = $_POST['csrf_token'] ?? ""; require_once "autoload.php"; require_once "sessions.php"; -- cgit v1.2.3