diff --git a/web/skins/classic/views/events.php b/web/skins/classic/views/events.php index be9eaed2d..87e76feaf 100644 --- a/web/skins/classic/views/events.php +++ b/web/skins/classic/views/events.php @@ -98,7 +98,7 @@ foreach ( dbFetchAll( $eventsSql ) as $event ) $events[] = new Event( $event ); # Doesn this code do anything? - $scale = max( reScale( SCALE_BASE, $event->DefaultScale(), ZM_WEB_DEFAULT_SCALE ), SCALE_BASE ); + $scale = max( reScale( SCALE_BASE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE ), SCALE_BASE ); $eventWidth = reScale( $event['Width'], $scale ); $eventHeight = reScale( $event['Height'], $scale ); if ( $maxWidth < $eventWidth ) $maxWidth = $eventWidth; @@ -212,14 +212,14 @@ foreach ( $events as $event )