Removed 2nd parameter for assert() as this is only available in PHP 5.4.8+ but Mailer...
[mailer.git] / inc / filter / user_filter.php
index 3653be39047e17fcd32e00f1740ff1f069f8907c..fde26ce488d497b1afdb2faf653c3c01948970b2 100644 (file)
@@ -176,7 +176,7 @@ function FILTER_SUBID_USER_REGISTRATION_ADD_SQL_COLUMNS ($filterData) {
 // Generic filter for updating referral counter of currently detected referral id
 function FILTER_GENERIC_UPDATE_USER_REFERRAL ($filterData) {
        // Make sure the referral id is detected
-       assert(isValidReferralId(), 'isValidReferralId()=false which is not expected.');
+       assert(isValidReferralId());
 
        // Update ref counter, determineReferralId() must already be called before this filter is executed
        sqlQuery('UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_clicks`=`ref_clicks`+1 WHERE `userid`={%pipe,getReferralId%} LIMIT 1', __FUNCTION__, __LINE__);
@@ -188,7 +188,7 @@ function FILTER_GENERIC_UPDATE_USER_REFERRAL ($filterData) {
 // Filter for updating sub id records
 function FILTER_UPDATE_USER_SUBID ($filterData) {
        // Make sure the referral id is detected
-       assert(isValidReferralId(), 'isValidReferralId()=false which is not expected.');
+       assert(isValidReferralId());
 
        // Get sub id and secure it
        $subId = sqlEscapeString(getRequestElement('subid'));