mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-10 01:47:03 +03:00
Some small cleanups
This commit is contained in:
parent
04f4538700
commit
c0f494c758
5 changed files with 13 additions and 22 deletions
|
|
@ -67,12 +67,9 @@ abstract class AbstractConfig implements \JsonSerializable
|
|||
*/
|
||||
public function Get(string $sSection, string $sName, $mDefault = null)
|
||||
{
|
||||
$mResult = $mDefault;
|
||||
if (isset($this->aData[$sSection][$sName][0]))
|
||||
{
|
||||
$mResult = $this->aData[$sSection][$sName][0];
|
||||
}
|
||||
return $mResult;
|
||||
return isset($this->aData[$sSection][$sName][0])
|
||||
? $this->aData[$sSection][$sName][0]
|
||||
: $mDefault;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue