@@ -181,8 +181,7 @@ |
||
181 | 181 | ) |
182 | 182 | // We are not previewing an attachment. |
183 | 183 | && !isset($_SESSION['attachments_can_preview'][$attachId]) |
184 | - ) |
|
185 | - { |
|
184 | + ) { |
|
186 | 185 | send_http_status(404, 'File Not Found'); |
187 | 186 | die('404 File Not Found'); |
188 | 187 | } |
@@ -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) |