Changeset 1940

Show
Ignore:
Timestamp:
05/18/06 16:21:56 (2 years ago)
Author:
qldrob
Message:

Wups, I missed a place to check for a failed database_get. Relates to r1927

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/agi-bin/recordingcheck

    r1927 r1940  
    3535         
    3636                $r = $agi->get_variable("ARG1"); 
    37                 if ($r["result"] == 0) { 
    3837                        $agi->verbose("Extension List not set -- nothing to do"); 
    3938                        exit(1); 
     
    4746                        foreach($list as $exten) { 
    4847                                $setting = $agi->database_get("AMPUSER",$exten."/recording"); 
     48                                if ($setting["result"] == 0) { 
     49                                        $agi->verbose("No DB Entry AMPUSER/$exten/recording - Not recording"); 
     50                                        exit(1); 
     51                                { 
    4952                                //explode recording vars 
    5053                                $recording = explode("|",$setting["data"]); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads