[SOLVED] This site doesn't allow you to save PinsUninitialized string offset: 0 in admin/controller/tool/tweaks.php
Posted: Tue Apr 26, 2022 9:09 pm
A technical Question:
I found this Notice in my Openshop 1.5.6.5_rc based TWEAKS Extension, most likely related to PHP v.7.4.x:
Notice: Uninitialized string offset: 0 in admin/controller/tool/tweaks.php on line 175
Possibly someone is willing to help me with this, I would be happy, to get this fixed!
Ernie
I found this Notice in my Openshop 1.5.6.5_rc based TWEAKS Extension, most likely related to PHP v.7.4.x:
Notice: Uninitialized string offset: 0 in admin/controller/tool/tweaks.php on line 175
Code: Select all
foreach ($tfiles as &$tfile) {
$tfile = str_replace('../','',$tfile);
----- if ($tfile[0] == '/') $tfile = substr($tfile,1); ----- Line 175
}
if (!$tfiles) $tfiles = array();
$tfiles = array_unique($tfiles);
sort($tfiles);
$info['files'] = $tfiles;
}
Ernie