small optimization for WAV file validation process in audio store
git-svn-id: svn://192.168.202.10@3401 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user