diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index eac2f97..e824997 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -1516,6 +1516,9 @@ function t($string, array $args = array(), array $options = array()) {
     return $string;
   }
   else {
+    if (is_object($args) && $args instanceOf \ArrayObject) {
+      $args = (array) $args;
+    }
     return format_string($string, $args);
   }
 }
