Index: trunk/www/dch/db_explorer.php
===================================================================
--- trunk/www/dch/db_explorer.php	(revision 19499)
+++ trunk/www/dch/db_explorer.php	(revision 19500)
@@ -370,5 +370,5 @@
     $selecty="SUM(fNumExcEvts)*3600/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)";
     $selecterr="EXCERR(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)*3600";
-    $isnull="AND NOT ISNULL(fNumExcEvts)";
+    $isnull="AND NOT ISNULL(fNumExcEvts) AND NOT ISNULL(fEffectiveOn)";
     $titley="Excess events";
     $unity="[1/h]";
@@ -554,5 +554,5 @@
     ($selectx) AS x,
     ($selecty) AS y,
-    (SUM(fOnTimeAfterCuts)/60) AS ontime,
+    (SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)/60) AS ontime,
     ($selecterr) AS e,
     (LIMA(SUM(fNumSigEvts), SUM(fNumBgEvts))) AS s,
