summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDmitriy Verkhoumov <verkhoumov@users.noreply.github.com>2017-01-21 15:05:41 +0100
committerGitHub <noreply@github.com>2017-01-21 15:05:41 +0100
commit674d3657e917f83874dca7239cd3a988a5e0b693 (patch)
tree2af2e87ea87b1c4dd5b3ee024bfa9cabad5e72ce /system
parent44c7af639ac1726780b64fb5a6cb6fca2df8b651 (diff)
Fixed show_error() for check $exit_status
At the beginning of the function it checks whether a parameter $status_code is less than 100. Then the parameter $exit_status is formed by summing the $status_code + 9. In this case, the parameter $exit_status can not be more than 108, but somehow it is checked whether the value of the parameter $exit_status over 125. Such a situation can not occur under any circumstances.
Diffstat (limited to 'system')
-rw-r--r--system/core/Common.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 2712df0e4..5c6f88ef9 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -409,11 +409,6 @@ if ( ! function_exists('show_error'))
if ($status_code < 100)
{
$exit_status = $status_code + 9; // 9 is EXIT__AUTO_MIN
- if ($exit_status > 125) // 125 is EXIT__AUTO_MAX
- {
- $exit_status = 1; // EXIT_ERROR
- }
-
$status_code = 500;
}
else