]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/mediadata_filter.php
mailer project continued:
[mailer.git] / inc / filter / mediadata_filter.php
index 54bc2c710ee76d81ecb60dc7ac49ec22d70abe32..bf811ae78d02bfcfaffd277528470ac38c8c7728 100644 (file)
@@ -16,8 +16,8 @@
  * $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 *
@@ -41,14 +41,14 @@ if (!defined('__SECURITY')) {
 } // 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]