summaryrefslogtreecommitdiffstats
path: root/modules-available/minilinux
diff options
context:
space:
mode:
authorSimon Rettberg2021-03-25 14:33:38 +0100
committerSimon Rettberg2021-03-25 14:33:38 +0100
commit5918ff8d0ddbaf5b7086bd051f2786ceb1ed6065 (patch)
treec265dd52f2ac078e5ab288fdf3220d469c702fee /modules-available/minilinux
parent[remoteaccess] Show plugin version (diff)
downloadslx-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/minilinux')
-rw-r--r--modules-available/minilinux/inc/linuxbootentryhook.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/minilinux/inc/linuxbootentryhook.inc.php b/modules-available/minilinux/inc/linuxbootentryhook.inc.php
index e3090054..e57336f0 100644
--- a/modules-available/minilinux/inc/linuxbootentryhook.inc.php
+++ b/modules-available/minilinux/inc/linuxbootentryhook.inc.php
@@ -162,7 +162,7 @@ class LinuxBootEntryHook extends BootEntryHook
$exec->commandLine = str_replace('%ID%', $effectiveId, $exec->commandLine);
$exec->executable = $root . $exec->executable;
foreach ($exec->initRd as &$rd) {
- if ($rd{0} !== '/') {
+ if ($rd[0] !== '/') {
$rd = $root . $rd;
}
}