Show
Ignore:
Timestamp:
01/30/10 11:31:02 (3 years ago)
Author:
p_lindheimer
Message:

remove debug statments and reinstate alter tables to remove fields form incoming on success re #4007

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.7/fax/install.php

    r8704 r8716  
    8888  } 
    8989} 
    90  
    91 //---------------------------- START HERE ----------------------------------// 
    9290 
    9391/* 
     
    167165      switch ($row['faxexten']) { 
    168166        case 'disabled': 
    169           //out(sprintf(_("%s/%s: is disabled, skipping"),$row['extension'],$row['cidnum'])); 
    170167          continue; // go back to foreach for now 
    171168        break; 
     
    197194        break; 
    198195      } 
    199       //out(sprintf(_("DEBUG: Inserting: %s/%s"),$row['extension'],$row['cidnum'])); 
    200196    } 
    201197 
     
    210206        outn(sprintf(_("Removing field %s from incoming table.."),$field)); 
    211207        $sql = "ALTER TABLE `incoming` DROP `".$field."`"; 
    212         echo $sql; //TODO DEBUG 
    213         /* 
    214208        $results = $db->query($sql); 
    215209        if (DB::IsError($results)) {  
    216         */ 
    217         if (false) { 
    218210          out(_("not present")); 
    219211        } else { 
     
    223215      outn(_("Removing old globals..")); 
    224216      $sql = "DELETE FROM globals WHERE variable IN ('FAX_RX', 'FAX_RX_EMAIL', 'FAX_RX_FROM')"; 
    225       echo $sql; //TODO DEBUG 
    226       /* 
     217 
    227218      $results = $db->query($sql); 
    228219      if (DB::IsError($results)) {  
    229       */ 
    230       if (false) { 
    231220        out(_("failed")); 
    232221      } else { 
     
    256245  out(_("already done")); 
    257246} 
    258  
    259247?>