File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ public function collect()
29
29
$ default_income_category = $ default_expense_category = [];
30
30
31
31
$ info = Info::all ();
32
- $ akaunting_version = $ info ['akaunting ' ];
33
- $ total_companies = $ info ['companies ' ];
34
- $ total_users = $ info ['users ' ];
32
+ $ akaunting_version = ! empty ( $ info ['akaunting ' ]) ? $ info [ ' akaunting ' ] : ' 0.0.0 ' ;
33
+ $ total_companies = ! empty ( $ info ['companies ' ]) ? $ info [ ' companies ' ] : ' 0 ' ;
34
+ $ total_users = ! empty ( $ info ['users ' ]) ? $ info [ ' users ' ] : ' 0 ' ;
35
35
$ company_id = company_id ();
36
36
$ company_date_format = company_date_format () . ' ( ' . company_date (Date::createFromTimestamp (0 )) . ') ' ;
37
37
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ public function collect()
22
22
$ requirements = Installer::checkServerRequirements ();
23
23
24
24
return [
25
- 'PHP ' => $ versions ['php ' ],
26
- 'MySQL ' => $ versions ['mysql ' ],
25
+ 'PHP ' => ! empty ( $ info ['php ' ]) ? $ info [ ' php ' ] : ' 0.0.0 ' ,
26
+ 'MySQL ' => ! empty ( $ info ['mysql ' ]) ? $ info [ ' mysql ' ] : ' 0.0.0 ' ,
27
27
'Memory Limit ' => ini_get ('memory_limit ' ),
28
28
'Execution Time ' => ini_get ('max_execution_time ' ),
29
29
'PHP OS ' => PHP_OS ,
You can’t perform that action at this time.
0 commit comments