From e39510726a736e92cd1f20b00fe8b30977bda38d Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 14 Jan 2014 16:00:42 +0000 Subject: [PATCH] use !empty to avoid error git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1623 a1433add-5e2c-0410-b055-b7f2511e0802 --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 2cce36c4..633b031f 100644 --- a/common.php +++ b/common.php @@ -84,7 +84,7 @@ if (defined('POSTFIXADMIN_CLI')) { require_once("$incpath/languages/" . $language . ".lang"); -if($CONF['language_hook'] != '' && function_exists($CONF['language_hook'])) { +if(!empty($CONF['language_hook']) && function_exists($CONF['language_hook'])) { $hook_func = $CONF['language_hook']; $PALANG = $hook_func ($PALANG, $language); }