]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/transaction_functions.php
Removed 2nd parameter for assert() as this is only available in PHP 5.4.8+ but Mailer...
[mailer.git] / inc / libs / transaction_functions.php
index 4422754cf3ca01f344bde3ba03f6b9965a264226..26839aa6bb044477c4ee99a28385c880edba2039 100644 (file)
@@ -86,7 +86,7 @@ function logTransaction ($sender, $receiver, $level, $valueAmount, $originalAmou
        );
 
        // Should work
-       assert(isValidId(getSqlInsertId()), 'getSqlInsertId() is not valid id number.');
+       assert(isValidId(getSqlInsertId()));
 }
 
 // Calculates transaction fee for sender amount
@@ -137,7 +137,7 @@ function generateHashFromTransactionData (array &$data, $oldHash = '') {
 // "Getter" for CAPTCHA code from given transaction id
 function getCaptchaCodeFromTransactionId ($transactionId) {
        // Must be valid
-       assert(isValidId($transactionId), 'transactionId=' . $transactionId . ' is not valid id number.');
+       assert(isValidId($transactionId));
 
        // Default is NULL
        $code = NULL;
@@ -319,7 +319,7 @@ LIMIT %s",
                        ), $allowed, '', FALSE);
 
                        // Should always work
-                       assert($updated === TRUE, 'Nothing has been updated which is not expected.');
+                       assert($updated === TRUE);
                } // END - if
        } // END - if
 
@@ -347,7 +347,7 @@ LIMIT %s",
                );
 
                // Should always work
-               assert(sqlAffectedRows() == count($failedIds), 'sqlAffectedRows()=' . sqlAffectedRows() . ',failedIds()=' . count($failedIds));
+               assert(sqlAffectedRows() == count($failedIds));
        } // END - if
 
        // Return status
@@ -357,7 +357,7 @@ LIMIT %s",
 // Checks whether the given user has a fee exempt
 function ifUserHasTransactionFeeExempt ($username) {
        // Accept only valid ids
-       assert(isValidId($username), 'username=' . $username . ' which is not a valid id number.');
+       assert(isValidId($username));
 
        // Is there "cache"?
        if (!isset($GLOBALS[__FUNCTION__][$username])) {