]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Make sure these variables are defined in PHP before calling them.
authorJordan Humphreys <jordan@mailyard.net>
Wed, 9 Apr 2014 17:07:32 +0000 (10:07 -0700)
committerJordan Humphreys <jordan@mailyard.net>
Wed, 9 Apr 2014 17:07:32 +0000 (10:07 -0700)
includes/_header.php
includes/_top-bar.php

index 1fabbbaef76fe176b0b7ec80f61dafc921f180cb..1b0f0a8cb5d788f7ca142622f6a31f5224c95599 100644 (file)
@@ -8,7 +8,7 @@
   <link rel="icon" href="images/icons/favicon.ico" type="image/x-icon" />
   
   <?php 
-    if($download_file) {
+    if (isset($download_file)) {
       echo "<meta http-equiv=\"Refresh\" content=\"0.5; url=downloads/$download_file\" />";
     }
   ?>
index 91d37c3d12d5161cadcf71bd0b1f1f8ef556e31e..6ed1eb2286e0d3e7d5b77b92b464c427dba4ebbc 100644 (file)
@@ -7,6 +7,11 @@
     <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
   </ul>
 
+  <?php 
+    if (empty($thisPage)) { 
+      $thisPage = null;
+    }
+  ?>
   <section class="top-bar-section">
     <ul class="right">
       <li<?php if ($thisPage=="process") echo " class=\"active\""; ?>><a href="process.php">Process</a></li>