vishwamano

source of vishwamano.com
git clone git://git.ricketyspace.net/vishwamano.git
Log | Files | Refs

commit b70a67e4c92dae40eaf9c0ff5f7b7956cc45cc5e
parent b066cb71b044778bef6ab4356adffbefdf436723
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 20 Nov 2018 19:00:39 -0500

parts/header.php: Use `isset` for checking existence of variables.

Diffstat:
parts/header.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/parts/header.php b/parts/header.php @@ -4,11 +4,11 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <?php if ($meta_keywords) { ?> + <?php if (isset($meta_keywords)) { ?> <meta name="keywords" content="<?=$meta_keywords?>"> <?php } ?> - <?php if ($meta_desc) { ?> + <?php if (isset($meta_desc)) { ?> <meta name="description" content="<?=$meta_desc?>"> <?php } ?>