Changeset 11676 for freepbx

Show
Ignore:
Timestamp:
03/04/11 15:56:45 (2 years ago)
Author:
p_lindheimer
Message:

fixes #4914 in parking, other undefined variables in other modules some harmless, some not so harmless

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.9/amp_conf/bin/retrieve_op_conf_from_mysql.php

    r10416 r11676  
    130130 
    131131    # remove comments 
    132     list($line,$comment) = explode(";",$line,2); 
    133         $line = trim($line); 
     132    $line_arr = explode(";",$line,2); 
     133    $line = trim($line_arr[0]); 
    134134    if ($line == "") {continue;} 
    135135 
     
    138138    $line = preg_replace("/(\040)+/", " ", $line); 
    139139 
    140         # check if an include declaration 
    141     @list($command,$include) = explode("#include ",$line,2); 
    142     if (isset($include))  { 
    143       parse_zapata($zaplines,$zapataconfdir.trim($include)); 
     140    // check if an include declaration 
     141    $include = explode("#include ",$line,2); 
     142 
     143    if (isset($include[1]))  { 
     144      parse_zapata($zaplines,$zapataconfdir.trim($include[1])); 
    144145      continue; 
    145146        }