mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-02 10:28:50 +03:00
Cleanup some PHP code
This commit is contained in:
parent
ce63ba506a
commit
8e5d56e15f
3 changed files with 13 additions and 30 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue