Changeset 5752

Show
Ignore:
Timestamp:
05/14/08 13:00:57 (5 months ago)
Author:
p_lindheimer
Message:

#2820 generate all timeconditions when authtype database used with dept names

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.4/timeconditions/functions.inc.php

    r5284 r5752  
    44function timeconditions_destinations() { 
    55        //get the list of meetmes 
    6         $results = timeconditions_list(); 
     6        $results = timeconditions_list(true); 
    77 
    88        // return an associative array with destination and description 
     
    5050        switch($engine) { 
    5151                case "asterisk": 
    52                         $timelist = timeconditions_list(); 
     52                        $timelist = timeconditions_list(true); 
    5353                        if(is_array($timelist)) { 
    5454                                foreach($timelist as $item) { 
     
    103103 
    104104//get the existing meetme extensions 
    105 function timeconditions_list() { 
     105function timeconditions_list($getall=false) { 
    106106        $results = sql("SELECT * FROM timeconditions","getAll",DB_FETCHMODE_ASSOC); 
    107107        if(is_array($results)){ 
    108108                foreach($results as $result){ 
    109109                        // 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'])){ 
    111111                                // return this item's dialplan destination, and the description 
    112112                                $allowed[] = $result; 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads