Skip to content

Commit

Permalink
Revised previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanklick committed Sep 9, 2014
1 parent 075e985 commit 2f5203d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phrets.php
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ public function GetMetadataTable($resource, $class) {
$this_table = array();

// parse XML into a nice array
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) {
foreach ($xml->METADATA->{'METADATA-TABLE'}->Field as $key) {
$this_table[] = array(
'SystemName' => "{$key->SystemName}",
Expand Down

0 comments on commit 2f5203d

Please sign in to comment.