CMS MADE SIMPLE FORGE

Statistics

 

[#9800] PHP Join() Warning in Statistics.module.php

avatar
Created By: John Beatrice (mww)
Date Submitted: Fri Jan 24 12:55:28 -0500 2014

Assigned To:
Version: 1.1.3
CMSMS Version: 1.11.9
Severity: Major
Resolution: None
State: Open
Summary:
PHP Join() Warning in Statistics.module.php
Detailed Description:
A PHP Warning with various CMSMS versions:

PHP Warning: join(): Invalid arguments passed in
/public_html/modules/Statistics/Statistics.module.php on line 471

Should line 471:	$statkeywords=$this->ReplaceKeywords(join($keyword_array, "
"));

Be written as:		$statkeywords=$this->ReplaceKeywords(join(" ", $keyword_array));

(http://uk1.php.net/manual/en/function.implode.php)


History

Comments
avatar
Date: 2015-07-28 07:57
Posted By: Jason (Jase)

Still received the error using this.

Warning stopped by replacing line 471 with:

	$keyword_array = array();

        $statkeywords=$this->ReplaceKeywords(implode(" ", $keyword_array));