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("", "", "");

Reply via email to