diff options
author | Simon Rettberg | 2021-03-25 14:33:38 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-03-25 14:33:38 +0100 |
commit | 5918ff8d0ddbaf5b7086bd051f2786ceb1ed6065 (patch) | |
tree | c265dd52f2ac078e5ab288fdf3220d469c702fee /modules-available/syslog | |
parent | [remoteaccess] Show plugin version (diff) | |
download | slx-admin-5918ff8d0ddbaf5b7086bd051f2786ceb1ed6065.tar.gz slx-admin-5918ff8d0ddbaf5b7086bd051f2786ceb1ed6065.tar.xz slx-admin-5918ff8d0ddbaf5b7086bd051f2786ceb1ed6065.zip |
Fix deprecated curly braces string indexing (PHP 7.4)
Diffstat (limited to 'modules-available/syslog')
-rw-r--r-- | modules-available/syslog/api.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/syslog/api.inc.php b/modules-available/syslog/api.inc.php index a8a8b0da..da3e1519 100644 --- a/modules-available/syslog/api.inc.php +++ b/modules-available/syslog/api.inc.php @@ -64,7 +64,7 @@ $longdesc = ''; if (isset($_POST['longdesc'])) $longdesc = $_POST['longdesc']; $longdesc = Request::post('longdesc', '', 'string'); -if ($type{0} !== '.' && $type{0} !== '~') { +if ($type[0] !== '.' && $type[0] !== '~') { // Spam from IP $row = Database::queryFirst('SELECT Count(*) AS cnt FROM clientlog WHERE clientip = :client AND dateline + 1800 > UNIX_TIMESTAMP()', array(':client' => $ip)); |