From 023c0912e5bf4938c8ebb1bac9e764feb027f066 Mon Sep 17 00:00:00 2001 From: inghamn Date: Wed, 6 Jan 2010 18:27:54 +0000 Subject: [PATCH] Fixed error: no longer checking for maps if we don't have a section git-svn-id: https://rosehill.googlecode.com/svn/branches/php@34 100bd78a-fc82-11de-b5bc-ffd2847a4b57 --- blocks/html/interments/maps.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/blocks/html/interments/maps.inc b/blocks/html/interments/maps.inc index 66e4630..ba3b304 100644 --- a/blocks/html/interments/maps.inc +++ b/blocks/html/interments/maps.inc @@ -5,13 +5,18 @@ * @author Cliff Ingham * @param Interment $this->interment */ +$highlighted_map = ''; +$zoomed_map = ''; +if ($this->interment->getSection_id()) { + $highlighted_map = $this->interment->getSection()->getMap(); + $zoomed_map = $this->interment->getSection()->getMap('zoom'); +} + echo "

interment->getURL()}\">Back to Interment Details

"; - -$highlighted_map = $this->interment->getSection()->getMap(); if ($highlighted_map) { echo "

Entire Cemetery with Section Highlighted

@@ -25,7 +30,6 @@ else { "; } -$zoomed_map = $this->interment->getSection()->getMap('zoom'); if ($zoomed_map) { echo "

Close-up of Section