JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix another 'undefined index' warninG
authorJason Woofenden <jason@jasonwoof.com>
Mon, 27 Aug 2018 02:47:32 +0000 (22:47 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Mon, 27 Aug 2018 02:47:32 +0000 (22:47 -0400)
template.php

index 1f2592a..485cc87 100644 (file)
@@ -463,7 +463,11 @@ class tem {
        }
 
        function get($key) {
-               return $this->data[$key];
+               if (isset($this->data[$key])) {
+                       return $this->data[$key];
+               } else {
+                       return;
+               }
        }
 
        function show($name) {