mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
adress review
Signed-off-by: szaimen <szaimen@e.mail.de> Co-Authored-By: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
63e0849215
commit
0880aff7ea
1 changed files with 5 additions and 5 deletions
|
|
@ -64,7 +64,7 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
$content = file_get_contents(DataConst::GetBackupArchivesList());
|
||||
if ($content === "") {
|
||||
if (count($content) === 0) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
@ -89,14 +89,14 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
$content = file_get_contents(DataConst::GetBackupArchivesList());
|
||||
if ($content === "") {
|
||||
if (count($content) === 0) {
|
||||
return $array[] = '';
|
||||
}
|
||||
|
||||
$backupLines = explode("\n", $content);
|
||||
$backupTimes = array();
|
||||
$backupLines = explode('\n', $content);
|
||||
$backupTimes = [];
|
||||
foreach($backupLines as $lines) {
|
||||
$backupTimesTemp = explode(",", $lines);
|
||||
$backupTimesTemp = explode(',', $lines);
|
||||
$backupTimes[] = $backupTimesTemp[1];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue