Fix TCPDF_STATIC::fileGetContents()

Currently only the first path in the `$alt` array gets checked. This pull request fixes this so that all paths are checked.
This commit is contained in:
Martin Auswöger 2019-01-07 13:19:28 +01:00 committed by GitHub
parent 367241059c
commit b83e325c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1926,7 +1926,7 @@ class TCPDF_STATIC {
$alt = array_unique($alt);
foreach ($alt as $path) {
if (!self::file_exists($path)) {
return false;
continue;
}
$ret = @file_get_contents($path);
if ($ret !== false) {