From: Janusz Dobrowolski Date: Wed, 30 Sep 2020 16:33:26 +0000 (+0200) Subject: Small cleanups in installer. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=df317147686e6577fcfa7215705d376a3939772d Small cleanups in installer. --- diff --git a/includes/db/connect_db_mysql.inc b/includes/db/connect_db_mysql.inc index 4be5a295..8abdaa34 100644 --- a/includes/db/connect_db_mysql.inc +++ b/includes/db/connect_db_mysql.inc @@ -51,7 +51,7 @@ function db_query($sql, $err_msg=null) // set current db prefix $comp = isset($_SESSION["wa_current_user"]->cur_con) ? $_SESSION["wa_current_user"]->cur_con : 0; - $cur_prefix = $db_connections[$comp]['tbpref']; + $cur_prefix = @$db_connections[$comp]['tbpref']; $sql = str_replace(TB_PREF, $cur_prefix, $sql); if ($SysPrefs->show_sql) diff --git a/includes/db/connect_db_mysqli.inc b/includes/db/connect_db_mysqli.inc index 696fd828..87660a4f 100644 --- a/includes/db/connect_db_mysqli.inc +++ b/includes/db/connect_db_mysqli.inc @@ -52,7 +52,7 @@ function db_query($sql, $err_msg=null) // set current db prefix $comp = isset($_SESSION["wa_current_user"]->cur_con) ? $_SESSION["wa_current_user"]->cur_con : 0; - $cur_prefix = $db_connections[$comp]['tbpref']; + $cur_prefix = @$db_connections[$comp]['tbpref']; $sql = str_replace(TB_PREF, $cur_prefix, $sql); if ($SysPrefs->show_sql) diff --git a/install/isession.inc b/install/isession.inc index 684bad7b..181324af 100644 --- a/install/isession.inc +++ b/install/isession.inc @@ -138,7 +138,7 @@ if (!isset($_SESSION['language']) || !method_exists($_SESSION['language'], 'set_ { $l = array_search_value($i_lang, $inst_langs, 'code'); $_SESSION['language'] = new language($l['name'], $l['code'], $l['encoding'], - isset($l['rtl']) ? 'rtl' : 'ltr'); + @isset($l['rtl']) ? 'rtl' : 'ltr'); } if (!isset($installed_languages)) diff --git a/install/lang/pl_PL/LC_MESSAGES/pl_PL.mo b/install/lang/pl_PL/LC_MESSAGES/pl_PL.mo index 973ac8e6..312426e4 100644 Binary files a/install/lang/pl_PL/LC_MESSAGES/pl_PL.mo and b/install/lang/pl_PL/LC_MESSAGES/pl_PL.mo differ diff --git a/install/lang/pl_PL/LC_MESSAGES/pl_PL.po b/install/lang/pl_PL/LC_MESSAGES/pl_PL.po index 5d485209..cba8798b 100644 --- a/install/lang/pl_PL/LC_MESSAGES/pl_PL.po +++ b/install/lang/pl_PL/LC_MESSAGES/pl_PL.po @@ -262,7 +262,7 @@ msgstr "Powt #: install/index.php:399 install/index.php:400 install/index.php:401 msgid "Select Chart of Accounts:" -msgstr "Wybierz Planów Kont:" +msgstr "Wybierz Plan Kont:" #: install/index.php:400 install/index.php:401 install/index.php:402 msgid "Select Default Language:"