projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b885478
)
change to notify
author
Alan
<alan@roojs.com>
Thu, 7 Sep 2023 05:04:15 +0000
(13:04 +0800)
committer
Alan
<alan@roojs.com>
Thu, 7 Sep 2023 05:04:15 +0000
(13:04 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
982c4db
..
a6c9b70
100644
(file)
--- 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()){
$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->jerr
or("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()){
$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->jerr
or("NOTIFY-DUPE-EMAIL",
"that email already exists in the database");
}
}
}
}
}
}