George Baugh преди 2 години
родител
ревизия
9e49431d7e
променени са 3 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      lib/TCMS.pm
  2. 0 0
      www/templates/html/components/footers/about_footer.tx
  3. 0 0
      www/templates/html/components/headers/about_header.tx

+ 1 - 0
lib/TCMS.pm

@@ -236,6 +236,7 @@ sub app {
     {
         no strict 'refs';
         my $output = $routes{$path}{callback}->($query);
+        die "$path returned no data!" unless ref $output eq 'ARRAY' && @$output == 3;
 
         INFO("$env->{REQUEST_METHOD} $output->[0] $path");
 

+ 0 - 0
www/templates/html/components/footers/about_footer.tx


+ 0 - 0
www/templates/html/components/headers/about_header.tx