diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-23 00:48:07 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-23 00:48:07 +1000 |
| commit | af8edae4d9d95bac9b9c081468cd317a1f79d13e (patch) | |
| tree | cc81f66c48054a19b7f965667bcc7beaffb5cb3e /inc/functions.php | |
| parent | a59b8cf1ba22b9bebb3e605f6c8267d4e0fdd4f5 (diff) | |
minor hidden error causing problems
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php index 67104189..6e2fae1e 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -29,7 +29,7 @@ if(!isset($config['url_match'])) $config['url_match'] = '/^' . (preg_match($config['url_regex'], $config['root']) ? '' : - (@$_SERVER['HTTPS']?'https':'http') . + (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']?'https':'http') . ':\/\/'.$_SERVER['HTTP_HOST']) . preg_quote($config['root'], '/') . '(' . @@ -98,7 +98,7 @@ function fatal_error_handler() { if($error = error_get_last()) { - echo 'Caught fatal error: ' . $error['message'] . ' in <strong>' . $error['file'] . '</strong> on line ' . $error['line']; + error('Caught fatal error: ' . $error['message'] . ' in <strong>' . $error['file'] . '</strong> on line ' . $error['line']); } } register_shutdown_function('fatal_error_handler'); |
