use !empty to avoid error

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1623 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
David Goodwin 11 years ago
parent a0cf264976
commit e39510726a

@ -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);
}

Loading…
Cancel
Save