1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-12 22:35:55 +00:00

Fixes declaration of Pref_Prefs::csrf_ignore to match IHandler::csrf_ignore

This commit is contained in:
jbaldus
2021-12-02 20:57:19 +03:00
parent 5df8dacf9f
commit 987870074b

View File

@@ -27,7 +27,7 @@ class Pref_Prefs extends Handler_Protected {
const PI_ERR_NO_WORKDIR = "PI_ERR_NO_WORKDIR";
/** @param string $method */
function csrf_ignore($method) : bool {
function csrf_ignore(string $method) : bool {
$csrf_ignored = array("index", "updateself", "otpqrcode");
return array_search($method, $csrf_ignored) !== false;