catch case if exec() is not usable

This commit is contained in:
HB9HIL
2024-07-30 21:15:16 +02:00
parent 1052cd951c
commit f4b6f89959
4 changed files with 70 additions and 57 deletions

View File

@@ -359,7 +359,7 @@
</div>
</div>
</div>
<?php if (file_exists(realpath(APPPATH . '../') . '/.git')) { ?>
<?php if (file_exists(realpath(APPPATH . '../') . '/.git') && function_usable('exec')) { ?>
<?php
//Below is a failsafe where git commands fail
try {