Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
fixes #283 by handling shortcode with no ids set
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon007 committed Dec 23, 2017
1 parent 756a380 commit 19dd4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hyyan/WPI/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function translateShopUrl($url, $language)
*/
public function addShortcodeLanguageFilter($query_args, $atts)
{
if (strlen($atts['ids'])) {
if (isset($atts['ids']) && strlen($atts['ids'])) {
$ids = explode(',', $atts['ids']);
$transIds = array();
foreach ($ids as $id) {
Expand Down

0 comments on commit 19dd4b3

Please sign in to comment.