DataObjects/Person.php
authorAlan Knowles <alan@roojs.com>
Mon, 10 Feb 2014 05:18:16 +0000 (13:18 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 10 Feb 2014 05:18:16 +0000 (13:18 +0800)
DataObjects/Person.php

index fade057..8b16e61 100644 (file)
@@ -217,6 +217,9 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
     
     function getEmailFrom()
     {
+        if (empty($this->name)) {
+            return $this->email;
+        }
         return '"' . addslashes($this->name) . '" <' . $this->email . '>';
     }
     function toEventString()