summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-05 23:41:32 +0300
committerAndrew Dolgov <[email protected]>2021-02-05 23:41:32 +0300
commit403dca154c6b539de221f9e16174a0fdd0a1e896 (patch)
tree8187096f0e04ecb60440c8551514d990d0e85b2d /backend.php
parentb4cbc792cc5fbbd5356f91038bf6cf5e67a19e42 (diff)
initial WIP for php8; bump php version requirement to 7.0
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php6
1 files changed, 4 insertions, 2 deletions
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";