# HG changeset patch # User Dan # Date 1257776309 18000 # Node ID 6e51ca5e29eb47c7099b779e9475374e7572c828 # Parent 05fe0039d952fe8c10e1b049f44aae720efb48d4 which(): added silencer to shut up errors on servers with open_basedir restriction diff -r 05fe0039d952 -r 6e51ca5e29eb 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; }