Ignore:
Timestamp:
04/28/10 18:16:21 (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
  • branches/2.0/expressoMail1_2/inc/class.ScriptS.inc.php

    r1352 r2658  
    6161                        $aux = $this->SieveS->putscript($this->scriptfile, $this->createScript()); 
    6262                        if(!$aux){ 
    63                                 // Caso de erro, grava dentro da variável errstr; 
    64                                 $this->errstr = "O arquivo não foi criado"; 
     63                                $this->errstr = "Error: file not created"; 
     64                                return $this->errstr; 
    6565                        } 
    6666                        // Mata a variavel; 
     
    7070                         
    7171                        if(!$aux){ 
    72                                 // Caso de erro, grava dentro da variavel errstr; 
    73                                 $this->errstr = "O arquivo não foi ativado"; 
     72                                $this->errstr = "Error: error to activate file"; 
     73                                return $this->errstr; 
    7474                        } 
    7575                        else{ 
     
    8484                $this->SieveS->close(); 
    8585                         
    86                 if($this->rules){                
     86                if($this->rules) 
    8787                        return $this->rules; 
    88                 }else{ 
    89                         return $this->errstr; 
    90                 } 
    9188                         
    9289        } 
     
    9996         
    10097                $var_decode = rawurldecode($params['arfilter']); 
     98                $var_decode = preg_replace('/\n\./', '.', $var_decode); 
    10199                 
    102100                $narray  = explode("_end_",$var_decode); 
Note: See TracChangeset for help on using the changeset viewer.