mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Add trim()
This commit is contained in:
parent
accecf6a76
commit
867a2eacd3
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Console\Commands\Correction;
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user