]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-send_coupon.php
if is NULL the webmaster's email address will be used instead, made ext-coupon worki...
[mailer.git] / inc / modules / admin / what-send_coupon.php
index 86a7ac55bb74485d35cbeb5749ffe7b9afa93fb5..65995d8c68e80a95cec64ae15c9091f9446f46b0 100644 (file)
@@ -84,8 +84,14 @@ ORDER BY
                        // Get the insert id from the table
                        $couponId = SQL_INSERTID();
 
+                       // Init userid array
+                       $adminUserids = array();
+
                        // Load entry
                        while (list($userid) = SQL_FETCHROW($result)) {
+                               // Debug message
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'NUMS=' . SQL_NUMROWS($result) . ',userid=' . $userid);
+
                                // By default no code is unique
                                $isUnique = FALSE;
                                $couponCode = '';