mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #988 no more warning on PHP 7.3 (only for branch 2.9, branch master will get a new version of jshrink)
This commit is contained in:
@@ -192,7 +192,7 @@ class JShrink_Minifier
|
||||
case "\n":
|
||||
// if the next line is something that can't stand alone
|
||||
// preserve the newline
|
||||
if(strpos('(-+{[@', $this->b) !== false)
|
||||
if($this->b !== false && strpos('(-+{[@', $this->b) !== false)
|
||||
{
|
||||
echo $this->a;
|
||||
$this->saveString();
|
||||
@@ -239,7 +239,7 @@ class JShrink_Minifier
|
||||
if($this->a == '/' && ($this->b == '\'' || $this->b == '"'))
|
||||
{
|
||||
$this->saveRegex();
|
||||
continue;
|
||||
continue 3;
|
||||
}
|
||||
|
||||
echo $this->a;
|
||||
|
||||
Reference in New Issue
Block a user