Silent errors from checking local documentation

The file_exists can issue error in case of open_basedir restrictions.

Fixes #11940

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-02-12 10:06:00 +01:00
parent 6566e94914
commit 5f0aa04560
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ phpMyAdmin - ChangeLog
- issue #11920 Can't disable backquotes in export
- issue #11911 Inserts via tbl_change.php in VARBINARY columns does not allow using HEX() and MD5()
- issue #11939 Correct content type for uploaded error reports
- issue #11940 Silent errors from checking local documentation
4.5.4.1 (2016-01-29)
- issue #11892 Error with PMA 4.4.15.3

View File

@ -518,7 +518,7 @@ class PMA_Util
if (defined('TESTSUITE')) {
/* Provide consistent URL for testsuite */
return PMA_linkURL('http://docs.phpmyadmin.net/en/latest/' . $url);
} else if (file_exists('doc/html/index.html')) {
} else if (@file_exists('doc/html/index.html')) {
if (defined('PMA_SETUP')) {
return '../doc/html/' . $url;
} else {