From 1d6499661edf1706a798c9cafa6a8ce5f0d556bb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 29 Apr 2015 13:41:05 +0000 Subject: [PATCH] fixed notice in installation --- doc/rpm-build/post_install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/rpm-build/post_install.php b/doc/rpm-build/post_install.php index 15822330ed..3869d729a9 100755 --- a/doc/rpm-build/post_install.php +++ b/doc/rpm-build/post_install.php @@ -69,7 +69,7 @@ $config = array( ); // read language from LANG enviroment variable -if (($lang = isset($_ENV['LANG']) ? $_ENV['LANG'] : $_SERVER['LANG'])) +if (($lang = isset($_ENV['LANG']) ? $_ENV['LANG'] : (isset($_SERVER['LANG']) ? $_SERVER['LANG'] : null))) { @list($lang,$nat) = preg_split('/[_.]/',$lang); if (in_array($lang.'-'.strtolower($nat),array('es-es','pt-br','zh-tw')))