Changeset 623 for trunk/mobile/inc/class.ui_mobilecc.inc.php
- Timestamp:
- 01/26/09 14:47:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mobile/inc/class.ui_mobilecc.inc.php
r588 r623 3 3 4 4 var $nextmatchs; 5 var $bo; 5 var $bo; 6 6 var $page_info = array ( 7 7 'actual_catalog' => false, … … 115 115 $ids = $this->bo->find($what,$rules); 116 116 117 foreach($ids as $id_r) { //Quero apenas os ids, como valores nas posições do array117 if(is_array($ids)) foreach($ids as $id_r) { //Quero apenas os ids, como valores nas posições do array 118 118 $retorno[] = $id_r[substr($id,strpos($id,".")+1)]; 119 119 } … … 262 262 if(!$from_calendar) { 263 263 $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 266 265 $p->set_var(array('option_value'=>"bo_global_ldap_catalog#". 267 266 $id."#". … … 334 333 $var['row_telefone'] = $conn1['connection_value']; 335 334 } 336 $var['form_action'] = "index.php?menuaction=mobile. mobilemail.new_msg";335 $var['form_action'] = "index.php?menuaction=mobile.ui_mobilemail.new_msg"; 337 336 $p->set_var($var); 338 337 $p->parse('rows','row',True); … … 367 366 } 368 367 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"; 370 369 else { 371 370 $var['id_contact'] = $entry['uidnumber'][0].'U'; … … 382 381 $p->set_var('lang_choose_the_participants',lang("choose the participants")); 383 382 $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) { 386 385 $p->set_var('row_contact_name',$participant); 387 386 if(next($participants)!==false) … … 423 422 } 424 423 425 $p->pfp('out','body'); 424 //$p->pfp('out','body'); 425 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out','body')); 426 426 } 427 427
Note: See TracChangeset
for help on using the changeset viewer.