diff --git a/sites/all/modules/contrib/esi/modules/esi_panels/esi_panels.module b/sites/all/modules/contrib/esi/modules/esi_panels/esi_panels.module
index 7a10bfa..d6ce7f3 100644
--- a/sites/all/modules/contrib/esi/modules/esi_panels/esi_panels.module
+++ b/sites/all/modules/contrib/esi/modules/esi_panels/esi_panels.module
@@ -192,6 +192,7 @@ function esi_panels_url($pane, $display) {
   }
 
   // Add all the display arguments to the end of the URL.
+  $args = is_object($display->args) ? get_object_vars($display->args) : $display->args;
   $url .= '/' . implode('/', array_keys($args));
 
   // Always add the current page URL.
