Error noticed in Joomla site apache logs

Browsing trough my web logs I found the following error in the apache error log of a Joomla site:

[Mon Oct 17 13:49:16 2011] [error] [client aaa.aaa.aaa.aaa] PHP Notice: Array to string conversion in aaa/libraries/joomla/html/parameter.php on line 83

One suggestion found online was:

Edit parameters.php and change the line 83 as follows:

Before:

if (trim( $data )) {

After:

if ($data) {

But modifying core joomla files isn’t such a hot idea as one user notices. So the solution is fixing the plugin causing the problem in the first place:

Edit plugins/system/JoomSEO.php at line 46

$this->params = new JParameter($params);

replace with

$this->params = new JParameter($params['params']);