Skip to content

Commit

Permalink
Fix for Coastal Bend bad metadata behavior by adding additional sanit…
Browse files Browse the repository at this point in the history
…y checks
  • Loading branch information
nathanklick committed Sep 9, 2014
1 parent d2fcac9 commit 075e985
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) {
if ($xml->METADATA && isset($xml->METADATA['METADATA-TABLE']) && !is_null($xml->METADATA->{'METADATA-TABLE'})) {
foreach ($xml->METADATA->{'METADATA-TABLE'}->Field as $key) {
$this_table[] = array(
'SystemName' => "{$key->SystemName}",
Expand Down

0 comments on commit 075e985

Please sign in to comment.