which(): added silencer to shut up errors on servers with open_basedir restriction
authorDan
Mon, 09 Nov 2009 09:18:29 -0500
changeset 1133 6e51ca5e29eb
parent 1132 05fe0039d952
child 1134 4fdd92da4fe8
which(): added silencer to shut up errors on servers with open_basedir restriction
includes/functions.php
--- a/includes/functions.php	Tue Nov 03 22:08:48 2009 -0500
+++ b/includes/functions.php	Mon Nov 09 09:18:29 2009 -0500
@@ -5194,7 +5194,7 @@
     foreach ( $extensions as $ext )
     {
       $fullpath = "$dir/{$executable}{$ext}";
-      if ( file_exists($fullpath) && is_executable($fullpath) )
+      if ( @file_exists($fullpath) && @is_executable($fullpath) )
       {
         return $fullpath;
       }