cvs: phpweb / error.php
| From: | Rasmus Lerdorf | Date: | Sun, 10 Sep 2006 06:18:03 +0000 |
| Subject: | cvs: phpweb / error.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32424@lists.php.net to get a copy of this message | ||
rasmus Sun Sep 10 06:18:03 2006 UTC
Modified files:
/phpweb error.php
Log:
in_array on a single array element?
http://cvs.php.net/viewvc.cgi/phpweb/error.php?r1=1.49&r2=1.50&diff_format=u
Index: phpweb/error.php
diff -u phpweb/error.php:1.49 phpweb/error.php:1.50
--- phpweb/error.php:1.49 Wed Sep 6 14:12:30 2006
+++ phpweb/error.php Sun Sep 10 06:18:03 2006
@@ -1,6 +1,6 @@
<?php
-// $Id: error.php,v 1.49 2006/09/06 14:12:30 nlopess Exp $
+// $Id: error.php,v 1.50 2006/09/10 06:18:03 rasmus Exp $
/*
@@ -351,7 +351,7 @@
// Temporary hack for mirror-info, until all the pages
// will be capable of being included from anywhere
-if (in_array($URI, array('mirror-info'))) {
+if ($URI=='mirror-info') {
status_header(200);
include_once $_SERVER['DOCUMENT_ROOT'] . "/$URI.php";
}