| @@ 528-531 (lines=4) @@ | ||
| 525 | $_SESSION['query_command_denied'][$command] = $query_error; |
|
| 526 | ||
| 527 | // Let the admin know there is a command denied issue |
|
| 528 | if (class_exists('Errors')) |
|
| 529 | { |
|
| 530 | Errors::instance()->log_error($txt['database_error'] . ': ' . $query_error . (!empty($modSettings['enableErrorQueryLogging']) ? "\n\n$db_string" : ''), 'database', $file, $line); |
|
| 531 | } |
|
| 532 | ||
| 533 | return false; |
|
| 534 | } |
|
| @@ 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)) |
|