projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds specific function to build homonyms hrmid.
[platal.git]
/
bin
/
cron
/
homonyms.php
diff --git
a/bin/cron/homonyms.php
b/bin/cron/homonyms.php
index
cfc5b0d
..
f70ee30
100755
(executable)
--- a/
bin/cron/homonyms.php
+++ b/
bin/cron/homonyms.php
@@
-33,8
+33,8
@@
while ($old = $resRobot->next()) {
$res = XDB::query('SELECT a.hruid
FROM homonyms_list AS h
INNER JOIN accounts AS a ON (h.uid = a.uid)
$res = XDB::query('SELECT a.hruid
FROM homonyms_list AS h
INNER JOIN accounts AS a ON (h.uid = a.uid)
- WHERE hrmid = {?}',
-
'h.' . $old['email'] . '.' . Platal::globals()->mail->domain
);
+ WHERE h
.h
rmid = {?}',
+
User::makeHomonymHrmid($old['email']
);
$hruids = $res->fetchColumn();
$homonym = User::getSilent($old['uid']);
$hruids = $res->fetchColumn();
$homonym = User::getSilent($old['uid']);