Fix for PHP 8.1 compatibility

This commit is contained in:
JRGTH
2022-06-30 16:35:04 -04:00
parent 995a1233ac
commit 01ba718169
4 changed files with 5 additions and 4 deletions

View File

@@ -274,7 +274,7 @@ if ($_POST) {
function get_version_ext() {
global $versionfile;
exec("/bin/cat {$versionfile}", $result);
return ($result[0]);
return ($result[0] ?? '');
}
if (is_ajax()) {