Commit 39800fc5 authored by mikeytown2's avatar mikeytown2 Committed by japerry

Issue #1334894 by mikeytown2: Warning: Invalid argument supplied for foreach()...

Issue #1334894 by mikeytown2: Warning: Invalid argument supplied for foreach() in views_content_views_content_type_render()
parent 8737907b
......@@ -120,11 +120,13 @@ function views_content_views_content_type_render($subtype, $conf, $panel_args, $
$args = str_replace("%$id", $arg, $args);
}
if (!empty($panel_args) && is_array($panel_args)) {
foreach ($panel_args as $id => $arg) {
if (is_string($arg)) {
$args = str_replace("@$id", $arg, $args);
}
}
}
$args = preg_replace(',/?(%\d|@\d),', '', $args);
$args = $args ? explode('/', $args) : array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment