Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e2b9e173

Von Sven Schöling vor etwa 15 Jahren hinzugefügt

  • ID e2b9e1737230c4e4209904784808dcaec723f730
  • Vorgänger 00e2320c
  • Nachfolger 1f110e87

Alle Vorkommen von all_departments abgesichert.

Unterschiede anzeigen:

bin/mozilla/gl.pl
110 110

  
111 111
  # departments
112 112
  $form->all_departments(\%myconfig);
113
  if (@{ $form->{all_departments} }) {
113
  if (@{ $form->{all_departments} || [] }) {
114 114
    $form->{selectdepartment} = "<option>\n";
115 115

  
116 116
    map {
117 117
      $form->{selectdepartment} .=
118 118
        "<option>$_->{description}--$_->{id}\n"
119
    } (@{ $form->{all_departments} });
119
    } (@{ $form->{all_departments} || [] });
120 120
  }
121 121

  
122 122
  $form->{show_details} = $myconfig{show_form_details} unless defined $form->{show_details};
......
146 146

  
147 147
  # departments
148 148
  $form->all_departments(\%myconfig);
149
  if (@{ $form->{all_departments} }) {
149
  if (@{ $form->{all_departments} || [] }) {
150 150
    $form->{selectdepartment} = "<option>\n";
151 151

  
152 152
    map {
153 153
      $form->{selectdepartment} .=
154 154
        "<option>$_->{description}--$_->{id}\n"
155
    } (@{ $form->{all_departments} });
155
    } (@{ $form->{all_departments} || [] });
156 156
  }
157 157

  
158 158
  my $i        = 1;
......
240 240
  $form->all_departments(\%myconfig);
241 241

  
242 242
  # departments
243
  if (@{ $form->{all_departments} }) {
243
  if (@{ $form->{all_departments} || [] }) {
244 244
    $form->{selectdepartment} = "<option>\n";
245 245

  
246 246
    map {
247 247
      $form->{selectdepartment} .=
248 248
        "<option>$_->{description}--$_->{id}\n"
249
    } (@{ $form->{all_departments} });
249
    } (@{ $form->{all_departments} || [] });
250 250
  }
251 251

  
252 252
  my $department = qq|

Auch abrufbar als: Unified diff