]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-surfbar_stats.php
Bug 'return is not bool' fixed
[mailer.git] / inc / modules / admin / what-surfbar_stats.php
index fee9d1c894175d22a21bec26d82785202168e573..fc10c5fca38ec340a76d3cf7117e22145fa83a30 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 09/09/2008 *
- * ================                             Last change: 09/09/2008 *
+ * Mailer v0.2.1-FINAL                                Start: 09/09/2008 *
+ * ===================                          Last change: 09/09/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-surfbar_stats.php                           *
@@ -45,18 +45,18 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addMenuDescription('admin', __FILE__);
 
 // Is the 'url_id' set?
-if (isGetRequestElementSet(('url_id'))) {
+if (isGetRequestParameterSet(('url_id'))) {
        // Generate general statistics
        $result = SQL_QUERY_ESC("SELECT `userid`,`count` AS `total_visits`, UNIX_TIMESTAMP(`last_surfed`) AS `last_surfed`
 FROM `{?_MYSQL_PREFIX?}_surfbar_stats`
 WHERE `url_id`=%s
 ORDER BY `userid` ASC",
-       array(bigintval(getRequestElement('url_id'))), __FILE__, __LINE__);
+       array(bigintval(getRequestParameter('url_id'))), __FILE__, __LINE__);
 
        // Entries found?
        if (SQL_NUMROWS($result) > 0) {
                // Get all rows
-               $OUT = ''; $SW = 2; $cnt = 0; $visits = 0;
+               $OUT = ''; $SW = 2; $cnt = '0'; $visits = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Count totals
                        $visits += $content['total_visits'];
@@ -100,7 +100,7 @@ ORDER BY
        // Entries found?
        if (SQL_NUMROWS($result) > 0) {
                // Get all rows
-               $OUT = ''; $SW = 2; $urls = 0; $visits = 0;
+               $OUT = ''; $SW = 2; $urls = '0'; $visits = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Count totals
                        $urls   += $content['visited_urls'];