Skip to content

Commit

Permalink
Fixed issue: Don't use disk_free_space if function doesn't exist (Com…
Browse files Browse the repository at this point in the history
…fortUpdate)
  • Loading branch information
olleharstedt committed Jan 10, 2024
1 parent 7677c25 commit b71596b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/UpdateForm.php
Expand Up @@ -799,7 +799,7 @@ private function fileSystemCheck($obj)
} else {
$check->writable = 'pass';
}
if ($obj->freespaceCheck) {
if ($obj->freespaceCheck && function_exists('disk_free_space')) {
$check->freespace = (@disk_free_space($obj->name) > $obj->minfreespace);
} else {
$check->freespace = 'pass';
Expand Down

0 comments on commit b71596b

Please sign in to comment.