Changeset 4665

Show
Ignore:
Timestamp:
08/03/07 15:10:27 (1 year ago)
Author:
p_lindheimer
Message:

fixed some uninitialized variables, #2210 trunk dialpatterns not being retrieved in gui

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/core/functions.inc.php

    r4656 r4665  
    13681368                $astman->database_put("AMPUSER",$extension."/cidnum",$cid_masquerade); 
    13691369                $astman->database_put("AMPUSER",$extension."/voicemail","\"".isset($voicemail)?$voicemail:''."\""); 
    1370                 $astman->database_put("AMPUSER",$extension."/device","\"".isset($device)?$device:''."\""); 
     1370                $astman->database_put("AMPUSER",$extension."/device","\"".((isset($device))?$device:'')."\""); 
    13711371 
    13721372                if (trim($callwaiting) == 'enabled') { 
     
    18161816 
    18171817function core_trunks_readDialRulesFile() { 
    1818         global $localPrefixFile; // probably not the best way 
     1818        global $amp_conf; 
     1819        $localPrefixFile = $amp_conf['ASTETCDIR']."/localprefixes.conf"; 
    18191820         
    18201821        core_trunks_parse_conf($localPrefixFile, $conf, $section); 
     
    18241825 
    18251826function core_trunks_writeDialRulesFile($conf) { 
    1826         global $localPrefixFile; // probably not the best way 
     1827        global $amp_conf; 
     1828        $localPrefixFile = $amp_conf['ASTETCDIR']."/localprefixes.conf"; 
    18271829         
    18281830        $fd = fopen($localPrefixFile,"w"); 
     
    28282830                                core_users_del($extdisplay); 
    28292831                                core_users_cleanastdb($extdisplay); 
    2830                                 if (function_exists(findmefollow_del)) { 
     2832                                if (function_exists('findmefollow_del')) { 
    28312833                                    findmefollow_del($extdisplay); 
    28322834                                } 
  • modules/branches/2.3/core/module.xml

    r4657 r4665  
    44        <category>Basic</category> 
    55        <name>Core</name> 
    6         <version>2.3.0beta2.3.2</version> 
     6        <version>2.3.0beta2.3.3</version> 
    77        <candisable>no</candisable> 
    88        <canuninstall>no</canuninstall> 
    99        <changelog> 
     10                *2.3.0beta2.3.3* fixed some uninitialized variables, #2210 trunk dialpatterns not being retrieved in gui 
    1011                *2.3.0beta2.3.2* #2151 fix trunk ordering when more than 9 trunks used, and some unitialized vars 
    1112                *2.3.0beta2.3.1* #2199 fix ENABLECW behavior on new extensions 
  • modules/branches/2.3/core/page.trunks.php

    r4656 r4665  
    1313//GNU General Public License for more details. 
    1414 
    15 $localPrefixFile = rtrim($amp_conf['ASTETCDIR'],DIRECTORY_SEPARATOR)."/localprefixes.conf"; 
    1615 
    1716 
     
    6564        $dialrules = array_values(array_unique($dialrules)); 
    6665} else { 
    67         $dialrules = ''
     66        $dialrules = array()
    6867} 
    6968 
     
    260259                } 
    261260                 
    262                 /* //DIALRULES 
    263                 if (!isset($_REQUEST["dialrules"])) { // we check REQUEST because dialrules() is always an array 
    264                         $dialrules = getTrunkDialRules($trunknum); 
    265                 } 
    266                 */ 
    267                 if (!isset($dialrules)) { $dialrules = null; } 
    268                 if (!isset($dialrules)) { $dialrules = null; } 
    269  
    270                  
    271261                if (count($dialrules) == 0) { 
    272262                        if ($temp = core_trunks_getDialRules($trunknum)) {