mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +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());
|
$content = file_get_contents(DataConst::GetBackupArchivesList());
|
||||||
if ($content === "") {
|
if (count($content) === 0) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -89,14 +89,14 @@ class ConfigurationManager
|
||||||
}
|
}
|
||||||
|
|
||||||
$content = file_get_contents(DataConst::GetBackupArchivesList());
|
$content = file_get_contents(DataConst::GetBackupArchivesList());
|
||||||
if ($content === "") {
|
if (count($content) === 0) {
|
||||||
return $array[] = '';
|
return $array[] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$backupLines = explode("\n", $content);
|
$backupLines = explode('\n', $content);
|
||||||
$backupTimes = array();
|
$backupTimes = [];
|
||||||
foreach($backupLines as $lines) {
|
foreach($backupLines as $lines) {
|
||||||
$backupTimesTemp = explode(",", $lines);
|
$backupTimesTemp = explode(',', $lines);
|
||||||
$backupTimes[] = $backupTimesTemp[1];
|
$backupTimes[] = $backupTimesTemp[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue