]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-earning.php
Fixed 'payments' cache (all array elements must have 'id' based index)
[mailer.git] / inc / modules / member / what-earning.php
index 27c2a9a3aef063dd1679d4717c665388aa7146f7..c0b2ab53434d88aa962634ac190774795627167b 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 *
@@ -37,7 +37,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } elseif (!isMember()) {
        redirectToIndexMemberOnlyModule();
 }
@@ -66,7 +66,7 @@ ORDER BY
        d.`earning_sorting` ASC', __FILE__, __LINE__);
 
 // Do we have entries?
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
        // Init output
        $OUT = '';
 
@@ -76,7 +76,7 @@ if (SQL_NUMROWS($result) > 0) {
                $result2 = SQL_QUERY_ESC('SELECT
        u.`earning_active`,
        UNIX_TIMESTAMP(u.`earning_added`) AS `earning_added`,
-       UNIX_TIMESTAMP(u.`earning_cancelled`) AS `earning_cancelled`,
+       UNIX_TIMESTAMP(u.`earning_canceled`) AS `earning_canceled`,
        u.`earning_daily_amount`,
        u.`earning_points`
 FROM