Small cleanups in installer.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 30 Sep 2020 16:33:26 +0000 (18:33 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 30 Sep 2020 21:31:45 +0000 (23:31 +0200)
includes/db/connect_db_mysql.inc
includes/db/connect_db_mysqli.inc
install/isession.inc
install/lang/pl_PL/LC_MESSAGES/pl_PL.mo
install/lang/pl_PL/LC_MESSAGES/pl_PL.po

index 4be5a295e5481a280d2dd1d6611e18eb4c497de3..8abdaa34f268e4cce6b934213abf645f6c0426ad 100644 (file)
@@ -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)
index 696fd8285a1646bc49aa406a41ff8ae4e7a32923..87660a4f0e516d4a85ea866ca690d18d918a8b59 100644 (file)
@@ -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)
index 684bad7b55849ec0f02be93166b6afa1b45a19a1..181324af9288042a7ffedb8f25c33307499a7b9f 100644 (file)
@@ -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))
index 973ac8e6259205fb5332bd58c398835420581193..312426e4eec84fac10ee7998430d77f7dd9cca7b 100644 (file)
Binary files a/install/lang/pl_PL/LC_MESSAGES/pl_PL.mo and b/install/lang/pl_PL/LC_MESSAGES/pl_PL.mo differ
index 5d4852099f725a71cf65c1b8613a9ff909696d7d..cba8798b1661681f7f79da42e153270fb1343b9c 100644 (file)
@@ -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:"