Skip to content

Commit

Permalink
Merge pull request SimpleMachines#5947 from SimpleMachines/revert-594…
Browse files Browse the repository at this point in the history
…4-BetterPGErrorHandling

Revert "Check if ip address is empty"
  • Loading branch information
Sesquipedalian authored Jan 11, 2020
2 parents fd625ee + 07ee273 commit 333ac34
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/Subs-Db-postgresql.php
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,6 @@ function smf_db_error_insert($error_array)
if (empty($db_connection))
return;

$error_array[2] = empty($error_array[2]) ? '127.0.0.1' : $error_array[2];

if (empty($pg_error_data_prep))
$pg_error_data_prep = pg_prepare($db_connection, 'smf_log_errors',
'INSERT INTO ' . $db_prefix . 'log_errors
Expand Down

0 comments on commit 333ac34

Please sign in to comment.