From dbc94c5a77269ac0340b8b959c0726090707057c Mon Sep 17 00:00:00 2001 From: supercrafter333 <53967726+supercrafter333@users.noreply.github.com> Date: Sat, 20 Feb 2021 02:16:37 +0100 Subject: [PATCH] Fix Issue #73 Change $file{0} to $file[0], {} is too old for arrays --- MapImageEngine/src/FaigerSYS/MapImageEngine/MapImageEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MapImageEngine/src/FaigerSYS/MapImageEngine/MapImageEngine.php b/MapImageEngine/src/FaigerSYS/MapImageEngine/MapImageEngine.php index 195ca55..04595b9 100644 --- a/MapImageEngine/src/FaigerSYS/MapImageEngine/MapImageEngine.php +++ b/MapImageEngine/src/FaigerSYS/MapImageEngine/MapImageEngine.php @@ -61,7 +61,7 @@ public function onEnable() { @mkdir($dir = $path . 'instructions/'); foreach (scandir($r_dir = $this->getFile() . '/resources/instructions/') as $file) { - if ($file{0} !== '.') { + if ($file[0] !== '.') { copy($r_dir . $file, $dir . $file); } }