summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-07-06 07:44:44 +0000
committerDries Buytaert <dries@buytaert.net>2001-07-06 07:44:44 +0000
commit829d77df8e5d7399af4c7920576a109571ba9859 (patch)
treeeb0ec7fae988eb9acbc0cf62a6471ac15a363c9a
parent121b5425c2dc4c9373cd3e358b495968e028d1cb (diff)
downloadbrdo-829d77df8e5d7399af4c7920576a109571ba9859.tar.gz
brdo-829d77df8e5d7399af4c7920576a109571ba9859.tar.bz2
- Fixed bug in error.php
-rw-r--r--error.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/error.php b/error.php
index b38483cfd..db6f157c4 100644
--- a/error.php
+++ b/error.php
@@ -10,6 +10,11 @@ $errors = array(500 => "500 error: internal server error",
watchdog("httpd", $errors[$REDIRECT_STATUS]);
-header("Location: index.php");
+if (strstr($REDIRECT_URL, "index.php")) {
+ header("Location: ../index.php");
+}
+else {
+ header("Location: index.php");
+}
?> \ No newline at end of file