Add trim()

This commit is contained in:
James Cole 2022-01-07 16:17:38 +01:00
parent accecf6a76
commit 867a2eacd3
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace FireflyIII\Console\Commands\Correction;

View File

@ -148,10 +148,10 @@ class DebugController extends Controller
$buildDate = '(unknown)';
if (file_exists('/var/www/counter-main.txt')) {
$buildNr = file_get_contents('/var/www/counter-main.txt');
$buildNr = trim(file_get_contents('/var/www/counter-main.txt'));
}
if (file_exists('/var/www/build-date-main.txt')) {
$buildDate = file_get_contents('/var/www/build-date-main.txt');
$buildDate = trim(file_get_contents('/var/www/build-date-main.txt'));
}
// expected + found DB version: