Skip to content

Commit

Permalink
Adding a check
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Aug 29, 2024
1 parent da8002a commit 6047bca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/com_contact/src/Service/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function getCategoriesSegment($id, $query)
*/
public function getContactSegment($id, $query)
{
if ($this->noIDs) {
if ($this->noIDs && strpos($id, ':')) {
list($void, $segment) = explode(':', $id, 2);

return [$void => $segment];
Expand Down
2 changes: 1 addition & 1 deletion components/com_content/src/Service/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function getCategoriesSegment($id, $query)
*/
public function getArticleSegment($id, $query)
{
if ($this->noIDs) {
if ($this->noIDs && strpos($id, ':')) {
list($void, $segment) = explode(':', $id, 2);

return [$void => $segment];
Expand Down
2 changes: 1 addition & 1 deletion components/com_newsfeeds/src/Service/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function getCategoriesSegment($id, $query)
*/
public function getNewsfeedSegment($id, $query)
{
if ($this->noIDs) {
if ($this->noIDs && strpos($id, ':')) {
list($void, $segment) = explode(':', $id, 2);

return [$void => $segment];
Expand Down

0 comments on commit 6047bca

Please sign in to comment.