fix psalm

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-03-10 11:17:25 +01:00
parent cbc19c17ca
commit c5bfdbb653
2 changed files with 6 additions and 1 deletions

View file

@ -78,7 +78,10 @@ class ConfigurationManager
}
$lastBackupLines = explode("\n", $content);
$lastBackupLine = $lastBackupLines[sizeof($lastBackupLines) - 2];
$lastBackupLine = "";
if (count($lastBackupLines) >= 2) {
$lastBackupLine = $lastBackupLines[sizeof($lastBackupLines) - 2];
}
if ($lastBackupLine === "") {
return '';
}