Ignore:
Timestamp:
01/26/09 14:47:04 (15 years ago)
Author:
niltonneto
Message:

Resolve #399.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mobile/inc/class.ui_mobilecc.inc.php

    r588 r623  
    33                 
    44                var $nextmatchs; 
    5                 var $bo; 
     5                var $bo;                 
    66                var $page_info = array ( 
    77                                'actual_catalog' => false, 
     
    115115                        $ids = $this->bo->find($what,$rules); 
    116116 
    117                         foreach($ids as $id_r) { //Quero apenas os ids, como valores nas posições do array 
     117                        if(is_array($ids)) foreach($ids as $id_r) { //Quero apenas os ids, como valores nas posições do array 
    118118                                $retorno[] = $id_r[substr($id,strpos($id,".")+1)]; 
    119119                        } 
     
    262262                        if(!$from_calendar) { 
    263263                                $branchs = $bo_ldap_manager->get_external_ldap_sources(); 
    264                                  
    265                                 foreach($branchs as $id=>$branch) { //Ldaps externos 
     264                                if(is_array($branchs)) foreach($branchs as $id=>$branch) { //Ldaps externos 
    266265                                        $p->set_var(array('option_value'=>"bo_global_ldap_catalog#". 
    267266                                                        $id."#". 
     
    334333                                                        $var['row_telefone'] = $conn1['connection_value']; 
    335334                                                } 
    336                                                 $var['form_action'] = "index.php?menuaction=mobile.mobilemail.new_msg"; 
     335                                                $var['form_action'] = "index.php?menuaction=mobile.ui_mobilemail.new_msg"; 
    337336                                                $p->set_var($var); 
    338337                                                $p->parse('rows','row',True); 
     
    367366                                                } 
    368367                                                if(!$from_calendar) 
    369                                                         $var['form_action'] = "index.php?menuaction=mobile.mobilemail.new_msg"; 
     368                                                        $var['form_action'] = "index.php?menuaction=mobile.ui_mobilemail.new_msg"; 
    370369                                                else { 
    371370                                                        $var['id_contact'] = $entry['uidnumber'][0].'U'; 
     
    382381                                $p->set_var('lang_choose_the_participants',lang("choose the participants")); 
    383382                                $participants = $_SESSION['mobile_calendar']; 
    384                                 reset($participants); 
    385                                 while (($participant = current($participants))!==false) { 
     383                                @reset($participants); 
     384                                if(count($participants)) while (($participant = current($participants))!==false) { 
    386385                                        $p->set_var('row_contact_name',$participant); 
    387386                                        if(next($participants)!==false) 
     
    423422                        }                        
    424423                         
    425                         $p->pfp('out','body'); 
     424                        //$p->pfp('out','body'); 
     425                        $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out','body')); 
    426426                } 
    427427                 
Note: See TracChangeset for help on using the changeset viewer.