From d9b6ea70259c2d60d46220bec2405bec3f37c773 Mon Sep 17 00:00:00 2001 From: Kireev Vitaly Date: Thu, 15 Aug 2013 18:44:16 +0800 Subject: [PATCH] Fix http://tracker.modx.com/issues/8221 --- core/components/login/model/login/loginhooks.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/components/login/model/login/loginhooks.class.php b/core/components/login/model/login/loginhooks.class.php index 074f4f96..4fa7e644 100644 --- a/core/components/login/model/login/loginhooks.class.php +++ b/core/components/login/model/login/loginhooks.class.php @@ -411,7 +411,9 @@ public function email(array $fields = array()) { public function _process($str,array $placeholders = array()) { foreach ($placeholders as $k => $v) { - $str = str_replace('[[+'.$k.']]',$v,$str); + if (!is_object($v)) { + $str = str_replace('[[+'.$k.']]',$v,$str); + } } return $str; }