]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/mediadata_filter.php
Introduced interruptFilterChain() and continueFilterChain(). Please DO ALWAYS use...
[mailer.git] / inc / filter / mediadata_filter.php
index 4b28c25e3afbdf2933bc9af0938b59a42e356b7b..80e65908ed11302f46495c6bcab22e85cae39203 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 - 2013 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 *
@@ -43,11 +43,11 @@ if (!defined('__SECURITY')) {
 // Filter for updating media data
 function FILTER_UPDATE_MEDIADATA_ENTRY ($filterData) {
        // Execute the filter function
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
-       $filterData['added'] = ($filterData['added'] === true && updateMediadataEntry(array('total_points'), $filterData['mode'], $filterData['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!');
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'added[' . gettype($filterData['added']) . ']=' . intval($filterData['added']) . ' - Done!');
        return $filterData;
 }