From 66a92263a54a391d4b0f2e29dd4733daa25f0ba1 Mon Sep 17 00:00:00 2001 From: genuineparts Date: Sun, 22 Jun 2025 16:20:34 +0200 Subject: [PATCH] more Fixes --- install/install.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/install.php b/install/install.php index 4eb3675..2f2edf8 100755 --- a/install/install.php +++ b/install/install.php @@ -146,7 +146,6 @@ class dump{ if($prefix!='as_'){ $this->file= preg_replace('/as_/',$prefix,$this->file); } - $i=0; $statements=array(); //HACK: We have ; in our Statements. This is to prevent String splitting there. @@ -155,9 +154,8 @@ class dump{ $lines=explode("\n",$this->file); $this->file=''; - $linecount= count($lines); for ($i = 0; $i < count($lines); $i++){ - if ( $lines[$i][0] != '#' && substr($lines[$i],0,2) != '--'){ + if (!str_starts_with($lines[$i], '#') && !str_starts_with($lines[$i], '--')){ $this->file.=stripslashes($lines[$i]); } }