From 986f532ba54243e266c30875ab6ef9c27f5179e2 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 29 Jun 2017 17:09:55 +0900 Subject: [PATCH] Fix mail error messages being displayed as 'Array' only --- common/framework/mail.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/common/framework/mail.php b/common/framework/mail.php index dba5ad301..fb39a4aeb 100644 --- a/common/framework/mail.php +++ b/common/framework/mail.php @@ -132,7 +132,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'setFrom: ' . $e->getMessage(); return false; } } @@ -164,7 +164,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'addTo: ' . $e->getMessage(); return false; } } @@ -185,7 +185,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'addCc: ' . $e->getMessage(); return false; } } @@ -206,7 +206,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'addBcc: ' . $e->getMessage(); return false; } } @@ -251,7 +251,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'setReplyTo: ' . $e->getMessage(); return false; } } @@ -271,7 +271,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'setReturnPath: ' . $e->getMessage(); return false; } } @@ -292,7 +292,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'setMessageID: ' . $e->getMessage(); return false; } } @@ -313,7 +313,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'setInReplyTo: ' . $e->getMessage(); return false; } } @@ -334,7 +334,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'setReferences: ' . $e->getMessage(); return false; } } @@ -354,7 +354,7 @@ class Mail } catch (\Exception $e) { - $this->errors[] = array($e->getMessage()); + $this->errors[] = 'setSubject: ' . $e->getMessage(); return false; } }