Cleanup some PHP code

This commit is contained in:
djmaze 2021-04-28 14:17:28 +02:00
parent ce63ba506a
commit 8e5d56e15f
3 changed files with 13 additions and 30 deletions

View file

@ -576,18 +576,15 @@ class ServiceActions
$sResult = $this->Cacher()->Get($sCacheFileName);
}
if (0 === \strlen($sResult))
if (!$sResult)
{
try
{
$sResult = $this->oActions->compileCss($sTheme, $bAdmin);
if ($bCacheEnabled)
if ($bCacheEnabled && $sCacheFileName)
{
if (0 < \strlen($sCacheFileName))
{
$this->Cacher()->Set($sCacheFileName, $sResult);
}
$this->Cacher()->Set($sCacheFileName, $sResult);
}
}
catch (\Throwable $oException)