Skip to content

Commit 2f5203d

Browse files
committed
Revised previous fix
1 parent 075e985 commit 2f5203d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

phrets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ public function GetMetadataTable($resource, $class) {
937937
$this_table = array();
938938

939939
// parse XML into a nice array
940-
if ($xml->METADATA && isset($xml->METADATA['METADATA-TABLE']) && !is_null($xml->METADATA->{'METADATA-TABLE'})) {
940+
if ($xml->METADATA && $xml->METADATA->{'METADATA-TABLE'} && $xml->METADATA->{'METADATA-TABLE'}->Field) {
941941
foreach ($xml->METADATA->{'METADATA-TABLE'}->Field as $key) {
942942
$this_table[] = array(
943943
'SystemName' => "{$key->SystemName}",

0 commit comments

Comments
 (0)