[vhffs-dev] [1401] Fixed an error in non refactored pages |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1401
Author: beuss
Date: 2009-05-23 15:41:01 +0200 (Sat, 23 May 2009)
Log Message:
-----------
Fixed an error in non refactored pages
Modified Paths:
--------------
branches/vhffs-design/vhffs-api/src/Vhffs/Panel.pm
Modified: branches/vhffs-design/vhffs-api/src/Vhffs/Panel.pm
===================================================================
--- branches/vhffs-design/vhffs-api/src/Vhffs/Panel.pm 2009-05-23 13:14:44 UTC (rev 1400)
+++ branches/vhffs-design/vhffs-api/src/Vhffs/Panel.pm 2009-05-23 13:41:01 UTC (rev 1401)
@@ -678,7 +678,7 @@
$paneltemplate->param( TITLE => $panel->{title} );
$paneltemplate->param( HEADER => $panel->generate_header );
- if( @{$panel->{errors}{global}} > 0 ) {
+ if( exists($panel->{errors}{global}) && @{$panel->{errors}{global}} > 0 ) {
my $tmplerrors = new HTML::Template( filename => $templatedir.'/panel/misc/errors.tmpl' );
$tmplerrors->param( ERRORS => $panel->{errors} );
$paneltemplate->param( ERRORS => $tmplerrors->output );