Skip to content

Commit

Permalink
Fix disk space on permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimot24 committed Aug 25, 2024
1 parent 7284b6b commit 3e283e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function index()
'users' => \App\Model\User::count(),
'visits' => \App\Model\Visits::count(),
'admin_logo' => ($admin_logo != "" && file_exists("storage/images/logos/" . $admin_logo)) ? "storage/images/logos/" . $admin_logo : \Config::get('horizontcms.admin_logo'),
'disk_space' => @(disk_free_space("/") / disk_total_space("/")) * 100,
'disk_space' => @((disk_free_space("/") ?: 1) / (disk_total_space("/") ?: 1)) * 100,
'upgrade' => $this->request->settings['auto_upgrade_check'] == 1 && \Auth::user()->hasPermission('upgrade')? $updater->source() : null,

]);
Expand Down

0 comments on commit 3e283e4

Please sign in to comment.