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

Commit 19dd4b3

Browse files
authored
fixes #283 by handling shortcode with no ids set
1 parent 756a380 commit 19dd4b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hyyan/WPI/Pages.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function translateShopUrl($url, $language)
167167
*/
168168
public function addShortcodeLanguageFilter($query_args, $atts)
169169
{
170-
if (strlen($atts['ids'])) {
170+
if (isset($atts['ids']) && strlen($atts['ids'])) {
171171
$ids = explode(',', $atts['ids']);
172172
$transIds = array();
173173
foreach ($ids as $id) {

0 commit comments

Comments
 (0)