]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/transaction_functions.php
Updated copyright year.
[mailer.git] / inc / libs / transaction_functions.php
index 4422754cf3ca01f344bde3ba03f6b9965a264226..682c97b82f77b4ce4210bfda595a97ecd2a9e0bd 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -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])) {