Skip to content

Commit

Permalink
com_tags : router error
Browse files Browse the repository at this point in the history
#### Steps to reproduce the issue

Install Joomla (Test English (GB) Sample Data), for example
From the backend set the configuration ‘Search Engine Friendly URLs’ = ‘YES’
Use the url: index.php?option=com_tags&view=tag&layout=list&id[0]=3 (not sef url into a sef one. The id can have another value and NO Itemid has to be set)

You will have 3 times the error:
Notice: Array to string conversion in /libraries/cms/router/site.php on line 465

The proposal to fix is to replace
 $id = $query['id'];
 with
 $id = (int) $query['id'];
 which seems coherent with the test line 80

#### Expected result
No error

#### Actual result
Notice: Array to string conversion in /libraries/cms/router/site.php on line 465

#### System information (as much as possible)
Joomla 3.3.6
  • Loading branch information
b92 committed Nov 2, 2014
1 parent a4ddd69 commit aadcac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_tags/router.php
Expand Up @@ -86,7 +86,7 @@ public function build(&$query)
}
else
{
$id = $query['id'];
$id = (int) $query['id'];
}

$segments[] = $id;
Expand Down

0 comments on commit aadcac2

Please sign in to comment.