We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 075e985 commit 2f5203dCopy full SHA for 2f5203d
1 file changed
phrets.php
@@ -937,7 +937,7 @@ public function GetMetadataTable($resource, $class) {
937
$this_table = array();
938
939
// parse XML into a nice array
940
- if ($xml->METADATA && isset($xml->METADATA['METADATA-TABLE']) && !is_null($xml->METADATA->{'METADATA-TABLE'})) {
+ if ($xml->METADATA && $xml->METADATA->{'METADATA-TABLE'} && $xml->METADATA->{'METADATA-TABLE'}->Field) {
941
foreach ($xml->METADATA->{'METADATA-TABLE'}->Field as $key) {
942
$this_table[] = array(
943
'SystemName' => "{$key->SystemName}",
0 commit comments