Ignore:
Timestamp:
04/28/10 18:06:48 (14 years ago)
Author:
niltonneto
Message:

Ticket #1056 - Corrigido problema que remove todas as regras ao criar um nova.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.ScriptS.inc.php

    r2360 r2657  
    7171                        $aux = $this->SieveS->putscript($this->scriptfile, $this->createScript()); 
    7272                        if(!$aux){ 
    73                                 // Caso de erro, grava dentro da variável errstr; 
    74                                 $this->errstr = "O arquivo não foi criado"; 
     73                                $this->errstr = "Error: file not created"; 
     74                                return $this->errstr; 
    7575                        } 
    7676                        // Mata a variavel; 
     
    8080                         
    8181                        if(!$aux){ 
    82                                 // Caso de erro, grava dentro da variavel errstr; 
    83                                 $this->errstr = "O arquivo não foi ativado"; 
     82                                $this->errstr = "Error: error to activate file"; 
     83                                return $this->errstr; 
    8484                        } 
    8585                        else{ 
     
    9494                $this->SieveS->close(); 
    9595                         
    96                 if($this->rules){                
     96                if($this->rules) 
    9797                        return $this->rules; 
    98                 }else{ 
    99                         return $this->errstr; 
    100                 } 
    10198                         
    10299        } 
     
    109106         
    110107                $var_decode = rawurldecode($params['arfilter']); 
     108                $var_decode = preg_replace('/\n\./', '.', $var_decode); 
    111109                 
    112110                $narray  = explode("_end_",$var_decode); 
Note: See TracChangeset for help on using the changeset viewer.