CMS MADE SIMPLE FORGE

Statistics

 

[#11740] Search engine php notice

avatar
Created By: Kim Birkeland Skorgenes (master3395)
Date Submitted: Sat Feb 17 18:37:28 -0500 2018

Assigned To: Fernando Morgado (JoMorg)
Version: 1.2.1.2
CMSMS Version: 2.2.6
Severity: Trivial
Resolution: None
State: Open
Summary:
Search engine php notice
Detailed Description:
Not a huge issue, but it does output some errors in the PHP error log.

[18-Feb-2018 00:32:34 Europe/Oslo] PHP Notice:  Undefined variable:
search_engine in
/home/newstargeted.com/public_html/modules/Statistics/Statistics.module.php on
line 546


      if ($search_engine != '') {
        // save search engine and keywords to database
        $this->IncreaseValue("count_search_engine", $search_engine);
        $statkeywords=$this->ReplaceKeywords(join($keyword_array, " "));
        $statkeywords=utf8_encode($statkeywords);
        if ($this->singlekeywords=='1') {
          $singlekeywords=explode(' ',$statkeywords);
          foreach ($singlekeywords as $keyword) {
            $this->IncreaseValue("count_search_keywords", trim($keyword));
          }
        } else {
          $this->IncreaseValue("count_search_keywords", trim($statkeywords));
        }

      } 


History