From: Jason Woofenden Date: Mon, 27 Aug 2018 02:47:32 +0000 (-0400) Subject: fix another 'undefined index' warninG X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=7fb2927d0a3dd3411285f9dc153d50d4bbc9ac6e fix another 'undefined index' warninG --- diff --git a/template.php b/template.php index 1f2592a..485cc87 100644 --- a/template.php +++ b/template.php @@ -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) {