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
This commit is contained in:
inghamn 2010-01-06 18:27:54 +00:00
parent 187e08d3f6
commit 023c0912e5
1 changed files with 7 additions and 3 deletions

View File

@ -5,13 +5,18 @@
* @author Cliff Ingham <inghamn@bloomington.in.gov> * @author Cliff Ingham <inghamn@bloomington.in.gov>
* @param Interment $this->interment * @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 " echo "
<p class=\"back\"> <p class=\"back\">
<a href=\"{$this->interment->getURL()}\">Back to Interment Details</a> <a href=\"{$this->interment->getURL()}\">Back to Interment Details</a>
</p> </p>
"; ";
$highlighted_map = $this->interment->getSection()->getMap();
if ($highlighted_map) { if ($highlighted_map) {
echo " echo "
<h2>Entire Cemetery with Section Highlighted</h2> <h2>Entire Cemetery with Section Highlighted</h2>
@ -25,7 +30,6 @@ else {
"; ";
} }
$zoomed_map = $this->interment->getSection()->getMap('zoom');
if ($zoomed_map) { if ($zoomed_map) {
echo " echo "
<h2>Close-up of Section</h2> <h2>Close-up of Section</h2>