mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02: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":
|
case "\n":
|
||||||
// if the next line is something that can't stand alone
|
// if the next line is something that can't stand alone
|
||||||
// preserve the newline
|
// preserve the newline
|
||||||
if(strpos('(-+{[@', $this->b) !== false)
|
if($this->b !== false && strpos('(-+{[@', $this->b) !== false)
|
||||||
{
|
{
|
||||||
echo $this->a;
|
echo $this->a;
|
||||||
$this->saveString();
|
$this->saveString();
|
||||||
@@ -239,7 +239,7 @@ class JShrink_Minifier
|
|||||||
if($this->a == '/' && ($this->b == '\'' || $this->b == '"'))
|
if($this->a == '/' && ($this->b == '\'' || $this->b == '"'))
|
||||||
{
|
{
|
||||||
$this->saveRegex();
|
$this->saveRegex();
|
||||||
continue;
|
continue 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $this->a;
|
echo $this->a;
|
||||||
|
|||||||
Reference in New Issue
Block a user