Avoid warning on PHP 7.3

This commit is contained in:
Adrien Crivelli 2018-10-07 20:28:04 +11:00
parent f25d8b72c0
commit edc608782f
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 1 additions and 1 deletions

View File

@ -4687,7 +4687,7 @@ class Xls extends BaseReader
$offset += 4; $offset += 4;
// offset: var; size: $us; character array of the URL, no Unicode string header, always 16-bit characters, zero-terminated // offset: var; size: $us; character array of the URL, no Unicode string header, always 16-bit characters, zero-terminated
$url = self::encodeUTF16(substr($recordData, $offset, $us - 2), false); $url = self::encodeUTF16(substr($recordData, $offset, $us - 2), false);
$nullOffset = strpos($url, 0x00); $nullOffset = strpos($url, chr(0x00));
if ($nullOffset) { if ($nullOffset) {
$url = substr($url, 0, $nullOffset); $url = substr($url, 0, $nullOffset);
} }