Selaa lähdekoodia

fix warning due to [undef] acls on page loads

George Baugh 3 vuotta sitten
vanhempi
sitoutus
91e76cbbc7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/TCMS.pm

+ 1 - 1
lib/TCMS.pm

@@ -148,7 +148,7 @@ sub app {
     }
 
     #Set various things we don't want overridden
-    $query->{acls} = [$query->{acls}] if (ref $query->{acls} ne 'ARRAY');
+    $query->{acls} = [$query->{acls}] if ($query->{acls} && ref $query->{acls} ne 'ARRAY');
     $query->{acls} = Trog::Auth::acls4user($active_user) // [] if $active_user;
 
     $query->{user}         = $active_user;