- Timestamp:
- 05/14/08 16:00:57 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.4/timeconditions/functions.inc.php
r5284 r5752 4 4 function timeconditions_destinations() { 5 5 //get the list of meetmes 6 $results = timeconditions_list( );6 $results = timeconditions_list(true); 7 7 8 8 // return an associative array with destination and description … … 50 50 switch($engine) { 51 51 case "asterisk": 52 $timelist = timeconditions_list( );52 $timelist = timeconditions_list(true); 53 53 if(is_array($timelist)) { 54 54 foreach($timelist as $item) { … … 103 103 104 104 //get the existing meetme extensions 105 function timeconditions_list( ) {105 function timeconditions_list($getall=false) { 106 106 $results = sql("SELECT * FROM timeconditions","getAll",DB_FETCHMODE_ASSOC); 107 107 if(is_array($results)){ 108 108 foreach($results as $result){ 109 109 // check to see if we have a dept match for the current AMP User. 110 if ( checkDept($result['deptname'])){110 if ($getall || checkDept($result['deptname'])){ 111 111 // return this item's dialplan destination, and the description 112 112 $allowed[] = $result;
