Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Not all targets have a pref_name
  • Loading branch information
egonw committed Apr 13, 2012
1 parent 81ffef3 commit 273f792
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions targets.php
Expand Up @@ -12,7 +12,7 @@
mysql_select_db($db) or die(mysql_error());
# echo "<!-- Database was selected! -->\n";

$allIDs = mysql_query("SELECT DISTINCT * FROM target_dictionary" . $limit);
$allIDs = mysql_query("SELECT DISTINCT * FROM target_dictionary where tid = 22226" . $limit);

$num = mysql_numrows($allIDs);

Expand Down Expand Up @@ -72,7 +72,8 @@
if ($classRow['l8']) echo data_triple( $target, $ONTO . "classL8", str_replace("\"", "\\\"", $classRow['l8']) );
}

echo data_triple( $target, $DC . "title", $row['pref_name'] );
if ($row['pref_name'])
echo data_triple( $target, $DC . "title", $row['pref_name'] );
}

?>

0 comments on commit 273f792

Please sign in to comment.