projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
09212c4
)
type on error
author
Alan
<alan@roojs.com>
Fri, 15 Sep 2023 08:05:21 +0000
(16:05 +0800)
committer
Alan
<alan@roojs.com>
Fri, 15 Sep 2023 08:05:21 +0000
(16:05 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
a6c9b70
..
4208198
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->jerror("NOTI
FY
-DUPE-EMAIL", "that email already exists in the database");
+ $roo->jerror("NOTI
CE
-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->jerror("NOTI
FY
-DUPE-EMAIL", "that email already exists in the database");
+ $roo->jerror("NOTI
CE
-DUPE-EMAIL", "that email already exists in the database");
}
}
}
}
}
}