Index: /branches/secondaryzones/DNSDB.pm
===================================================================
--- /branches/secondaryzones/DNSDB.pm	(revision 914)
+++ /branches/secondaryzones/DNSDB.pm	(revision 915)
@@ -5652,6 +5652,6 @@
 
   # Return false on invalid types
-  return 0 if !grep /^$type1$/, ('record','defrec','defrevrec','user','domain','revzone','group');
-  return 0 if !grep /^$type2$/, ('record','defrec','defrevrec','user','domain','revzone','group');
+  return 0 if !grep /^$type1$/, ('record','defrec','defrevrec','user','domain','revzone','secondaryzone','group');
+  return 0 if !grep /^$type2$/, ('record','defrec','defrevrec','user','domain','revzone','secondaryzone','group');
 
   # Return false on impossible relations
@@ -5662,4 +5662,5 @@
   return 0 if $type1 eq 'domain' && $type2 ne 'record';	# domain may not be a parent of anything other than a record
   return 0 if $type1 eq 'revzone' && $type2 ne 'record';# reverse zone may not be a parent of anything other than a record
+  return 0 if $type1 eq 'secondaryzone';# nothing may be a child of a secondary zone
 
   # ennnhhhh....  if we're passed an id of 0, it will never be found.  usual
