* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
} // END - if
// Filter for updating media data
-function FILTER_UPDATE_MEDIADATA_ENTRY ($data) {
+function FILTER_UPDATE_MEDIADATA_ENTRY ($filterData) {
// Execute the filter function
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
- $data['added'] = ($data['added'] === true && updateMediadataEntry(array('total_points'), $data['mode'], $data['points']));
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'added[' . gettype($filterData['added']) . ']=' . intval($filterData['added']) . ' - Called!');
+ $filterData['added'] = ($filterData['added'] === true && updateMediadataEntry(array('total_points'), $filterData['points_mode'], $filterData['points']));
// Return data
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
- return $data;
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'added[' . gettype($filterData['added']) . ']=' . intval($filterData['added']) . ' - Done!');
+ return $filterData;
}
// [EOF]