Changeset 7544

Show
Ignore:
Timestamp:
03/21/09 10:49:07 (3 years ago)
Author:
p_lindheimer
Message:

fixes #3592 clear output arrays to exec before calling since exec appends data

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/bin/retrieve_conf

    r7157 r7544  
    680680  // Don't know if this will ever happen, but a failure and a list could indicate something wrong. 
    681681  // 
     682  $outlines = array(); 
    682683  exec("/usr/bin/crontab -l", $outlines, $ret); 
    683684  if ($ret && count($outlines)) { 
     
    724725  if (is_executable($script)) { 
    725726    $script .= ' '.$amportalconf.' '.rtrim($asterisk_conf['astetcdir'],DIRECTORY_SEPARATOR); 
     727    $output = array(); 
    726728    exec($script, $output, $ret); 
    727729    if ($ret) { 
     
    772774*/ 
    773775 
     776$output = array(); 
    774777exec("grep '#include' ".$amp_conf['ASTETCDIR']."/*.conf | sed 's/;.*//; s/#include//'",$output,$retcode); 
    775778if ($retcode != 0) { 
     
    791794 
    792795  if (!file_exists($target)) { 
     796    $output = array(); 
    793797    exec("touch $target", $output, $retcode); 
    794798    if ($retcode != 0) {