--- a/getAgency.php +++ b/getAgency.php @@ -5,11 +5,11 @@ function displayValue($key, $value, $mode) { global $db, $schemas; if ($mode == "view") { - if (strpos($key, "_") === 0 || $key == "metadata") + if (strpos($key, "_") === 0 || $key == "metadata" || $key == "metaTags" || $key == "statistics") return; echo ""; - echo ""; + echo ""; if (isset($schemas['agency']["properties"][$key])) { echo $schemas['agency']["properties"][$key]['x-title'] . "
" . $schemas['agency']["properties"][$key]['description'] . ""; } @@ -119,7 +119,7 @@ // edit? $obj = $db->get($_REQUEST['id']); - include_header($obj->name); + include_header(isset($obj->name) ? $obj->name : ""); //print_r($row); if (sizeof($_POST) > 0) { //print_r($_POST); @@ -200,14 +200,6 @@ // show all list include_header('Agencies'); try { - /* $rows = $db->get_view("app", "showNamesABNs")->rows; - //print_r($rows); - foreach ($rows as $row) { - // print_r($row); - echo '
  • ' . - (isset($row->value->name) && $row->value->name != "" ? $row->value->name : "NO NAME " . $row->value->abn) - . '
  • '; - } */ $rows = $db->get_view("app", "byCanonicalName")->rows; //print_r($rows); echo '";