[web-people] master: Fixed syntax which is no longer supported in PHP 8
| From: | Derick Rethans | Date: | Fri, 09 Aug 2024 15:23:58 +0000 |
| Subject: | [web-people] master: Fixed syntax which is no longer supported in PHP 8 | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-31934@lists.php.net to get a copy of this message | ||
Author: Derick Rethans (derickr)
Date: 2024-08-09T16:23:35+01:00
Commit: https://github.com/php/web-people/commit/95b2291c622d4a142ee7399ba0c9e3657953954d
Raw diff: https://github.com/php/web-people/commit/95b2291c622d4a142ee7399ba0c9e3657953954d.diff
Fixed syntax which is no longer supported in PHP 8
Changed paths:
M include/karma.php
Diff:
diff --git a/include/karma.php b/include/karma.php
index 6bcfcb8..be3687e 100644
--- a/include/karma.php
+++ b/include/karma.php
@@ -46,7 +46,7 @@ function parseKarma(array $avail_lines)
// First pass, build array of rules
foreach ($avail_lines as $key => $acl_line) {
$acl_line = trim($acl_line);
- if ('' === $acl_line || '#' === $acl_line{0}) {
+ if ('' === $acl_line || '#' === $acl_line[0]) {
continue;
}
list($avail_str, $user_str, $path_str) = explode("|", $acl_line, 3) +
array("", "", "");