From 269521decec53d85f81d31e64814a9085885f20d Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 22 Mar 2021 22:01:41 +0000 Subject: [PATCH] small optimization for WAV file validation process in audio store git-svn-id: svn://192.168.202.10@3401 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/audio_store.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/vicidial/audio_store.php b/www/vicidial/audio_store.php index cd0f48ef..9bfc85b7 100644 --- a/www/vicidial/audio_store.php +++ b/www/vicidial/audio_store.php @@ -326,9 +326,11 @@ if ($action == "LIST") $stmt = "SELECT count(*) FROM audio_store_details where audio_format='wav' and wav_asterisk_valid='';"; $rslt=mysql_to_mysqli($stmt, $link); if ($DB) {echo "$stmt\n";} -$wuv_ct = mysqli_num_rows($rslt); +$row=mysqli_fetch_row($rslt); +$wuv_ct = $row[0]; if ( ($wuv_ct > 0) or ($action == "ALL_WAV_VALIDATION") ) { + if ($DB) {echo "Starting WAV file validation process...\n";} $i=0; $filename_sort=$MT; $dirpath = "$WeBServeRRooT/$sounds_web_directory";