Ticket #3621: callmonitor.module.patch

File callmonitor.module.patch, 0.8 kB (added by Nick_Lewis, 3 years ago)
  • old/callmonitor.module

    old new  
    500500          if (!$recording) {  
    501501            foreach($files as $key => $path) { 
    502502              if (strlen($uniqueid)>1 && strpos($path,$uniqueid)!==FALSE) { 
     503              // XXX why not >0 ? 
    503504                $recording = $path; 
    504505                $files[$key] = '';  // remove it from the recording files so it will not be matched twice 
    505506                break; 
     
    509510        }  
    510511 
    511512        // try and match a file using the calldate (if no unique number from database)  
    512         if (!$recording) {  
     513        if (!$recording && !(strlen($uniqueid) > 1)) { 
    513514 
    514515          foreach($files as $key => $path) { 
    515516            $parts = split("-", $path);