* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Add points in autopurge-mode
function addPointsAutoPurge ($userid, $points) {
// Is the userid valid?
- if (!isValidUserId($userid)) {
+ if ((!isValidId($userid)) || ($points <= 0)) {
// Please report all these bugs
reportBug(__FUNCTION__, __LINE__, 'Invalid call. userid=' . $userid . ',points=' . $points);
} // END - if