From 793015a8ed71f4bf59b18097577a08abf6902159 Mon Sep 17 00:00:00 2001 From: mohrt Date: Mon, 3 Dec 2001 22:28:24 +0000 Subject: [PATCH] fix problem with testing SMARTY_DIR as empty --- Smarty.class.php | 2 +- libs/Smarty.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index 0a02e2ba..137c437b 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -215,7 +215,7 @@ class Smarty \*======================================================================*/ function Smarty() { - if(!empty(SMARTY_DIR)) { + if(SMARTY_DIR != '') { $this->template_dir = SMARTY_DIR.$this->template_dir; $this->config_dir = SMARTY_DIR.$this->config_dir; $this->compile_dir = SMARTY_DIR.$this->compile_dir; diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 0a02e2ba..137c437b 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -215,7 +215,7 @@ class Smarty \*======================================================================*/ function Smarty() { - if(!empty(SMARTY_DIR)) { + if(SMARTY_DIR != '') { $this->template_dir = SMARTY_DIR.$this->template_dir; $this->config_dir = SMARTY_DIR.$this->config_dir; $this->compile_dir = SMARTY_DIR.$this->compile_dir;