From 85471ff02d9f38ca0ac94782736a0786ebf30c17 Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Wed, 20 Jan 2010 00:40:02 -0500
Subject: [PATCH] change check to is_executable instead of is_readable

---
 login_page.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/login_page.php b/login_page.php
index e004229..ba682f0 100644
--- a/login_page.php
+++ b/login_page.php
@@ -157,7 +157,7 @@
 
 	# Check if the admin directory is available and is readable.
 	$t_admin_dir = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR;
-	if ( is_dir( $t_admin_dir ) && is_readable( $t_admin_dir ) ) {
+	if ( is_dir( $t_admin_dir ) && is_executable( $t_admin_dir ) ) {
 		echo '<div class="warning" align="center">', "\n";
 		echo '<p><font color="red"><strong>WARNING:</strong> Admin directory should be removed.</font></p>', "\n";
 		echo '</div>', "\n";
-- 
1.6.5.2

