Mailer project rwritten:
[mailer.git] / inc / modules / admin / overview-inc.php
index 13a66c760d6011b56398a0c8ea17d5dc856d9c3a..1191a1ea88bcb8e9fd032a4c338b01031fe876f8 100644 (file)
@@ -337,7 +337,7 @@ LIMIT 1",
                                                        list($pid) = SQL_FETCHROW($result_pay);
                                                        SQL_FREERESULT($result_pay);
 
-                                                       if ((!empty($pid)) && ($pid > 0)) {
+                                                       if (isValidId($pid)) {
                                                                // Payout id can be obtained
                                                                $content = array(
                                                                        'pid' => $pid,
@@ -364,7 +364,7 @@ LIMIT 1",
                                                        list($pid) = SQL_FETCHROW($result_pay);
                                                        SQL_FREERESULT($result_pay);
 
-                                                       if ((!empty($pid)) && ($pid > 0)) {
+                                                       if (isValidId($pid)) {
                                                                // Payout id can be obtained
                                                                $content = array(
                                                                        'pid' => $pid,
@@ -445,7 +445,7 @@ LIMIT 1",
                                        break;
                        } // END - switch
 
-                       if (isValidUserId($content['userid'])) {
+                       if (isValidId($content['userid'])) {
                                // Member found otherwise it's a system task
                                $content['userid'] = generateUserProfileLink($content['userid']);
                        } else {