mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Supress warning message. is_executable() outputs a warning in case there is
no such file...
This commit is contained in:
@@ -13,7 +13,7 @@ if (isset($_SERVER['HTSEARCH_PROG'])) {
|
||||
$htsearch_prog = $_SERVER['HTSEARCH_PROG'];
|
||||
$searchtype = 1;
|
||||
}
|
||||
if (!is_executable($htsearch_prog)) {
|
||||
if (!@is_executable($htsearch_prog)) {
|
||||
unset($htsearch_prog);
|
||||
}
|
||||
if (!isset($htsearch_prog)) {
|
||||
|
||||
@@ -27,7 +27,7 @@ if (isset($_SERVER['HTSEARCH_PROG'])) {
|
||||
|
||||
// If the program to use to search is not excutable, we cannot
|
||||
// get search results, regardless of what we do
|
||||
if (!is_executable($htsearch_prog)) {
|
||||
if (!@is_executable($htsearch_prog)) {
|
||||
unset($htsearch_prog);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user