-if (isset($_POST['ok'])) {
- $result = SQL_QUERY("SELECT userid, email
-FROM `{!MYSQL_PREFIX!}_user_data`
-WHERE status='CONFIRMED' AND nl_receive='Y'
-ORDER BY userid ASC", __FILE__, __LINE__);
- if (SQL_NUMROWS($result) > 0) {
+if (isFormSent()) {
+ $result = SQL_QUERY("SELECT
+ `userid`,`email`
+FROM
+ `{?_MYSQL_PREFIX?}_user_data`
+WHERE
+ `status`='CONFIRMED' AND `nl_receive`='Y'
+ORDER BY
+ `userid` ASC", __FILE__, __LINE__);
+ if (!SQL_HASZERONUMS($result)) {