Changeset 3656 for branches/2.2/mobile


Ignore:
Timestamp:
01/05/11 14:38:19 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1409 - Ajuste na funcionalidade remover mensagem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc/class.ui_mobilemail.inc.php

    r3655 r3656  
    971971                { 
    972972 
    973                         if (isset($params['msgs'])) 
     973                        if ( isset($params['msgs']) || isset($params['msg_number']) ) 
    974974                        { 
    975975                                $params_messages = array( 
    976                                         'msgs_number' => implode(",",$params['msgs']), 
     976                                        'msgs_number' => isset($params['msgs'])?implode(",",$params['msgs']):$params['msg_number'], 
    977977                                        'folder' => $this->folders[$this->current_folder]['folder_name'], 
    978978                                        'new_folder_name' => 'Trash', 
     
    980980                                ); 
    981981                        }        
    982                         $this->imap_functions->move_messages($params_messages); 
    983  
    984                         header("Location: index.php?menuaction=mobile.ui_mobilemail.index&success_message=".lang("The messages were moved to trash")); 
     982 
     983                        if (isset($params['msg_number'])){ 
     984                         
     985                                $this->imap_functions->move_messages($params_messages); 
     986 
     987                                header("Location: index.php?menuaction=mobile.ui_mobilemail.index&success_message=".lang("The messages were moved to trash")); 
     988                                 
     989                        }else{ 
     990                                header("Location: index.php?menuaction=mobile.ui_mobilemail.index&error_message=".lang("please select one e-mail")); 
     991                        } 
    985992                     
    986993                } 
Note: See TracChangeset for help on using the changeset viewer.