Index: trunk/ippTools/share/pubtool_definerun.sql
===================================================================
--- trunk/ippTools/share/pubtool_definerun.sql	(revision 28367)
+++ trunk/ippTools/share/pubtool_definerun.sql	(revision 28369)
@@ -21,5 +21,5 @@
         AND publishClient.active = 1
         AND diffRun.state IN ('full', 'cleaned', 'goto_cleaned')
-        AND (diffRun.magicked > 0 OR diffRun.diff_mode = 4 OR publishClient.magicked = 0)
+        AND (diffRun.magicked != 0 OR diffRun.diff_mode = 4 OR publishClient.magicked = 0)
     -- WHERE hook %s
     UNION
@@ -36,5 +36,5 @@
         AND publishClient.active = 1
         AND camRun.state IN ('full', 'cleaned', 'goto_cleaned')
-        AND (camRun.magicked > 0 OR publishClient.magicked = 0)
+        AND (camRun.magicked != 0 OR publishClient.magicked = 0)
     -- WHERE hook %s
     ) AS publishToDo
