);
// Should work
- assert(isValidId(getSqlInsertId()), 'getSqlInsertId() is not valid id number.');
+ assert(isValidId(getSqlInsertId()));
}
// Calculates transaction fee for sender amount
// "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;
), $allowed, '', FALSE);
// Should always work
- assert($updated === TRUE, 'Nothing has been updated which is not expected.');
+ assert($updated === TRUE);
} // END - if
} // END - if
);
// Should always work
- assert(sqlAffectedRows() == count($failedIds), 'sqlAffectedRows()=' . sqlAffectedRows() . ',failedIds()=' . count($failedIds));
+ assert(sqlAffectedRows() == count($failedIds));
} // END - if
// Return status
// 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])) {