Commit 7cf58ff8 authored by JC Garcia's avatar JC Garcia Committed by Daniel Moberly
Browse files

Issue #3266428 by jsidigital: Deprecated function with php 8.1

parent bb45da96
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -160,7 +160,8 @@ function audiofield_help($route_name, RouteMatchInterface $route_match) {
function audiofield_check_audiowaveform_installed() {
  // Check if shell_exec is callable (required for audiowaveform);
  if (is_callable('shell_exec') && stripos(ini_get('disable_functions'), 'shell_exec') === FALSE) {
    return (substr(shell_exec('audiowaveform -v'), 0, 13) == 'AudioWaveform');
    $shellExecResult = (shell_exec('audiowaveform -v') ?? '');
    return (substr($shellExecResult, 0, 13) == 'AudioWaveform');
  }
  return FALSE;
}