Update XLSX.php

This commit is contained in:
Lewis Cowles 2015-06-30 23:01:16 +01:00
parent 44e8b43f95
commit a601b17d9d

View File

@ -242,7 +242,10 @@ class XLSX extends AbstractReader
// all other cell types should have a "v" tag containing the value.
// if not, the returned value should be empty string.
$vNode = $node->getElementsByTagName('v')->item(0);
return $vNode->nodeValue;
if ($vNode !== null) {
return $vNode->nodeValue;
}
return "";
}
/**