Index: banner.module
===================================================================
RCS file: C:/cvs/trackd47/contributions/modules/banner/banner.module,v
retrieving revision 1.1.1.2.2.1
diff -u -r1.1.1.2.2.1 banner.module
--- banner.module	18 Apr 2008 20:14:44 -0000	1.1.1.2.2.1
+++ banner.module	18 Apr 2008 21:02:28 -0000
@@ -1332,17 +1332,20 @@
       // mail notification failed
       $notify_failed = variable_get('banner_notify_failed', 5);
       if (($failed_notify) && (($banner->notify_failed + 1) > $notify_failed)) {
-        // too many notifications failures, disabling user's notification
-        db_query('UPDATE {banner} SET notify_day = 0, notify_week = 0 WHERE id = %d', $banner->id);
+        // too many notifications failures, disabling banners's notification
+        // FIXME: Do this for all banners with uid = $banner->uid in the {node} table
+        db_query('UPDATE {banner} SET notify_day = 0, notify_week = 0 WHERE nid = %d', $banner->nid);
       }
       else {
         // incrementing notification failures counter
-        db_query('UPDATE {banner} SET failed_notify = notify_failed + 1 WHERE id = %d', $banner->id);
+        // FIXME: Do this for all banners with uid = $banner->uid in the {node} table
+        db_query('UPDATE {banner} SET failed_notify = notify_failed + 1 WHERE nid = %d', $banner->nid);
       }
     }
     elseif ($banner->notify_failed) {
       // mail notification succeeded, zero out previous failed attempts counter
-      db_query('UPDATE {banner} SET notify_failed = 0 WHERE uid = %d', $user->uid);
+      // FIXME: Do this for all banners with uid = $banner->uid in the {node} table
+      db_query('UPDATE {banner} SET notify_failed = 0 WHERE nid = %d', $banner->nid);
     }
   }
 }

