X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_person.php;fp=DataObjects%2FCore_person.php;h=a6c9b705457f4c09c02b5a2872d70e7e0a49fdc7;hp=982c4dbfaed5bd20b297611f22ca32e7eea4fa95;hb=efe502cc0f2a369e00236fcd2eefe66d39d26dcb;hpb=b8854785583278b40c0d94d7770c45690fae46f4 diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index 982c4dbf..a6c9b705 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -1455,7 +1455,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject $pp = DB_DataObject::factory('core_person'); $pp->whereAdd('LOWER(email) = "' . $pp->escape(strtolower(trim($this->email))) . '"'); if ($pp->count()){ - $roo->jerr("that email already exists in the database"); + $roo->jerror("NOTIFY-DUPE-EMAIL", "that email already exists in the database"); } @@ -1660,7 +1660,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject $pp->whereAdd('LOWER(email) = "' . $pp->escape(strtolower(trim($this->email))) . '"'); $pp->whereAdd('id != ' . $old->id); if ($pp->count()){ - $roo->jerr("that email already exists in the database"); + $roo->jerror("NOTIFY-DUPE-EMAIL", "that email already exists in the database"); } } }