Changeset 3005

Show
Ignore:
Timestamp:
11/05/06 20:22:16 (7 years ago)
Author:
qldrob
Message:

This seems to fix #1272 - there were holes in the array that was confusing it when it tried to read the file back out, due to the sort/uniq of the file names.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/recordings/page.recordings.php

    r2882 r3005  
    315315  <select name="sysrec"/> 
    316316<?php 
    317   $srcount=0; 
    318   foreach ($sysrecs as $sr) { 
     317  foreach ($sysrecs as $srcount => $sr) { 
    319318    // echo '<option value="'.$vmc.'"'.($vmc == $ivr_details['dircontext'] ? ' SELECTED' : '').'>'.$vmc."</option>\n"; 
    320     echo '<option value="'.$srcount.'">'.$sr."</option>\n"; 
    321     $srcount++; 
     319    echo "<option value=\"$srcount\">$sr</option>\n"; 
    322320    } 
    323321  ?> 
     
    338336  $srcount = 0; 
    339337  foreach ($sysrecs as $sr) { 
    340     echo '<option value="'.$srcount.'"'.($sr == $item ? ' SELECTED' : '').'>'.$sr."</option>\n"; 
     338    echo '<option value="'.$srcount.'"'.($sr == $item ? ' SELECTED' : '').">$sr</option>\n"; 
    341339    $srcount++; 
    342340  }