Index: /branches/eam_branches/ipp-20121219/Ohana/src/dvopsps/src/insert_detections_dvopsps.c
===================================================================
--- /branches/eam_branches/ipp-20121219/Ohana/src/dvopsps/src/insert_detections_dvopsps.c	(revision 35070)
+++ /branches/eam_branches/ipp-20121219/Ohana/src/dvopsps/src/insert_detections_dvopsps.c	(revision 35071)
@@ -201,4 +201,6 @@
 
   struct timeval start, stop;
+
+  if (Ndetections == 0) return TRUE;
 
   // NOTE: mysql connection happens here since each dvopsps_client makes its own connection
