Changeset 423 for trunk/jabberit_messenger/inc/class.uimodule.inc.php
- Timestamp:
- 09/12/08 16:53:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/inc/class.uimodule.inc.php
r417 r423 54 54 { 55 55 $apps_list = unserialize($apps_list); 56 foreach($apps_list as $tmp) 57 $apps_en .= "<option value='".$tmp."'>".substr($tmp,strpos($tmp, ";")+1)."</option>"; 56 if(is_array($apps_list)) 57 { 58 foreach($apps_list as $tmp) 59 $apps_en .= "<option value='".$tmp."'>".substr($tmp,strpos($tmp, ";")+1)."</option>"; 60 } 58 61 } 59 62 60 63 if( $apps_enabled = $this->bo->getApplicationsList() ) 61 64 { 62 foreach($apps_enabled as $tmp ) 63 $apps .= "<option value='".$tmp['name'].";".$tmp['title']."'>".$tmp['title']."</option>"; 65 if(is_array($apps_enabled)) 66 { 67 foreach($apps_enabled as $tmp ) 68 $apps .= "<option value='".$tmp['name'].";".$tmp['title']."'>".$tmp['title']."</option>"; 69 } 64 70 } 65 71 66 67 72 $GLOBALS['phpgw']->template->set_file(array('jabberit_messenger'=>'module.tpl')); 68 73 $GLOBALS['phpgw']->template->set_block('jabberit_messenger','module'); … … 71 76 'apps_enabled' => $apps_en, 72 77 'apps_list' => $apps, 73 'lang_Settings_Use_Module_Expresso_Messenger' => 'Configurar o uso do módulo Expresso Messenger', 74 'lang_Applications_List' => 'Lista de Aplicativos', 75 'lang_Applications_habilitadas' => 'Aplicativos Habilitados', 78 'lang_Select_the_modules_where_the_Expresso_Messenger_will_be_loaded' => lang('Select the modules where the Expresso Messenger will be loaded.'), 79 'lang_Enable_the_Expresso_Messenger_module' => lang('Enable the Expresso Messenger module'), 80 'lang_Modules_List' => lang('Modules List'), 81 'lang_Modules_Enabled' => lang('Modules Enabled'), 76 82 'lang_save' => lang('Save'), 77 83 'lang_cancel' => lang('Cancel') … … 97 103 if(is_array($_POST['apps_enabled'])) 98 104 $this->bo->setApplications($_POST['apps_enabled']); 105 else 106 $this->bo->setApplications(""); 99 107 } 100 108
Note: See TracChangeset
for help on using the changeset viewer.