@@ -927,7 +927,8 @@ discard block |
||
927 | 927 | $smcFunc['db_transaction']('rollback'); |
928 | 928 | |
929 | 929 | if(empty($db_persist)) |
930 | - { // without pooling |
|
930 | + { |
|
931 | +// without pooling |
|
931 | 932 | if (empty($pg_error_data_prep)) |
932 | 933 | $pg_error_data_prep = pg_prepare($db_connection, 'smf_log_errors', |
933 | 934 | 'INSERT INTO ' . $db_prefix . 'log_errors |
@@ -938,7 +939,8 @@ discard block |
||
938 | 939 | pg_execute($db_connection, 'smf_log_errors', $error_array); |
939 | 940 | } |
940 | 941 | else |
941 | - { //with pooling |
|
942 | + { |
|
943 | +//with pooling |
|
942 | 944 | $pg_error_data_prep = pg_prepare($db_connection, '', |
943 | 945 | 'INSERT INTO ' . $db_prefix . 'log_errors |
944 | 946 | (id_member, log_time, ip, url, message, session, error_type, file, line, backtrace) |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | display_db_error(); |
76 | 76 | |
77 | 77 | // We need to escape ' and \ |
78 | - $db_passwd = str_replace(array('\\','\''), array('\\\\','\\\''), $db_passwd); |
|
78 | + $db_passwd = str_replace(array('\\', '\''), array('\\\\', '\\\''), $db_passwd); |
|
79 | 79 | |
80 | 80 | // Since pg_connect doesn't feed error info to pg_last_error, we have to catch issues with a try/catch. |
81 | 81 | set_error_handler( |
@@ -926,7 +926,7 @@ discard block |
||
926 | 926 | if (!empty($inTransaction)) |
927 | 927 | $smcFunc['db_transaction']('rollback'); |
928 | 928 | |
929 | - if(empty($db_persist)) |
|
929 | + if (empty($db_persist)) |
|
930 | 930 | { // without pooling |
931 | 931 | if (empty($pg_error_data_prep)) |
932 | 932 | $pg_error_data_prep = pg_prepare($db_connection, 'smf_log_errors', |