Code cleanup - unused variables

pull/251/head
Aleksander Machniak 10 years ago
parent 2d62b6bff8
commit 07a641c79f

@ -279,7 +279,7 @@ function rcmail_savedsearch_list($attrib)
// Saved searches
$sources = $RCMAIL->user->list_searches(rcube_user::SEARCH_ADDRESSBOOK);
foreach ($sources as $j => $source) {
foreach ($sources as $source) {
$id = $source['id'];
$js_id = rcube::JQ($id);

@ -324,7 +324,7 @@ function rcmail_import_buttons($attrib)
function rcmail_import_group_id($group_name, $CONTACTS, $create, &$import_groups)
{
$group_id = 0;
foreach ($import_groups as $key => $group) {
foreach ($import_groups as $group) {
if (strtolower($group['name']) == strtolower($group_name)) {
$group_id = $group['ID'];
break;

@ -1309,7 +1309,6 @@ function rcmail_write_forward_attachments()
}
else {
$data = $storage->get_raw_body($message->uid);
$curr_mem += $message->size;
}
$attachment = array(

@ -647,7 +647,7 @@ function rcmail_message_list_head($attrib, $a_show_cols)
*/
function rcmail_messagecontent_frame($attrib)
{
global $OUTPUT, $RCMAIL;
global $OUTPUT;
if (empty($attrib['id']))
$attrib['id'] = 'rcmailcontentwindow';
@ -1138,7 +1138,7 @@ function rcmail_localized_priority($value)
/**
* return block to show full message headers
*/
function rcmail_message_full_headers($attrib, $headers=NULL)
function rcmail_message_full_headers($attrib)
{
global $OUTPUT, $RCMAIL;
@ -2051,7 +2051,7 @@ function rcmail_search_filter($attrib)
return $out;
}
function rcmail_message_error($uid=null)
function rcmail_message_error()
{
global $RCMAIL;

@ -298,6 +298,8 @@ function rcmail_folder_form($attrib)
function rcmail_get_form_part($form, $attrib = array())
{
global $RCMAIL;
$content = '';
if (is_array($form['content']) && !empty($form['content'])) {

@ -79,7 +79,7 @@ $OUTPUT->send('responseedit');
function rcube_response_form($attrib)
{
global $RCMAIL, $OUTPUT, $RESPONSE_RECORD;
global $RCMAIL, $RESPONSE_RECORD;
// Set form tags and hidden fields
$disabled = !empty($RESPONSE_RECORD['static']);
@ -91,7 +91,6 @@ function rcube_response_form($attrib)
$out = "$form_start\n";
$table = new html_table(array('cols' => 2));
$label = $RCMAIL->gettext('responsename');
$table->add('title', html::label('ffname', rcube::Q($RCMAIL->gettext('responsename'))));
$table->add(null, rcube_output::get_edit_field('name', $RESPONSE_RECORD['name'],

@ -269,7 +269,6 @@ function rcmail_subscription_form($attrib)
// create list of available folders
foreach ($list_folders as $i => $folder) {
$idx = $i + 1;
$sub_key = array_search($folder['id'], $a_subscribed);
$subscribed = $sub_key !== false;
$protected = $protect_default && isset($special_folders[$folder['id']]);

@ -890,7 +890,7 @@ function rcmail_user_prefs($current = null)
$select_default_font->add('', '');
$fonts = rcmail::font_defs();
foreach ($fonts as $fname => $font) {
foreach (array_keys($fonts) as $fname) {
$select_default_font->add($fname, $fname);
}
@ -1360,7 +1360,7 @@ function rcmail_settings_tabs($attrib)
$tagname = $attrib['tagname'];
$tabs = array();
foreach ($plugin['actions'] as $k => $action) {
foreach ($plugin['actions'] as $action) {
if (!$action['command'] && !$action['href'] && $action['action']) {
$action['href'] = $RCMAIL->url(array('_action' => $action['action']));
}

Loading…
Cancel
Save