| @@ 521-524 (lines=4) @@ | ||
| 518 | $_SESSION['query_command_denied'][$command] = $query_error; |
|
| 519 | ||
| 520 | // Let the admin know there is a command denied issue |
|
| 521 | if (class_exists('Errors')) |
|
| 522 | { |
|
| 523 | Errors::instance()->log_error($txt['database_error'] . ': ' . $query_error . (!empty($modSettings['enableErrorQueryLogging']) ? "\n\n$db_string" : ''), 'database', $file, $line); |
|
| 524 | } |
|
| 525 | ||
| 526 | return false; |
|
| 527 | } |
|
| @@ 515-518 (lines=4) @@ | ||
| 512 | $query_error = @pg_last_error($connection); |
|
| 513 | ||
| 514 | // Log the error. |
|
| 515 | if (class_exists('Errors')) |
|
| 516 | { |
|
| 517 | Errors::instance()->log_error($txt['database_error'] . ': ' . $query_error . (!empty($modSettings['enableErrorQueryLogging']) ? "\n\n" . $db_string : ''), 'database', $file, $line); |
|
| 518 | } |
|
| 519 | ||
| 520 | // Nothing's defined yet... just die with it. |
|
| 521 | if (empty($context) || empty($txt)) |
|