Heacy rewrite/cleanup:
[mailer.git] / inc / libs / sponsor_functions.php
index fc12052eea581f4fe8e0e8043e8ada74653a55a0..d7daeab73c8a7f8134e35a5986b29d3bc090c043 100644 (file)
@@ -739,7 +739,7 @@ function fetchSponsorData ($sponsor_id, $column = 'id') {
 // Wrapper for fetchSponsorData() and getSponsorData() calls
 function getFetchedSponsorData ($keyColumn, $sponsor_id, $valueColumn) {
        // Zero ids are not valid
-       if ($sponsor_id == 0) {
+       if (!isValidId($sponsor_id)) {
                // Abort here
                reportBug(__FUNCTION__, __LINE__, 'Zero sponsor_id provided');
        } // END - if