diff --git a/views_content/plugins/content_types/views.inc b/views_content/plugins/content_types/views.inc
index 39f3ce5..79fbf08 100644
--- a/views_content/plugins/content_types/views.inc
+++ b/views_content/plugins/content_types/views.inc
@@ -120,9 +120,11 @@ function views_content_views_content_type_render($subtype, $conf, $panel_args, $
     $args = str_replace("%$id", $arg, $args);
   }
 
-  foreach ($panel_args as $id => $arg) {
-    if (is_string($arg)) {
-      $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);
+      }
     }
   }
 
