projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix unsubscription issue with axletter
[platal.git]
/
modules
/
axletter
/
axletter.inc.php
diff --git
a/modules/axletter/axletter.inc.php
b/modules/axletter/axletter.inc.php
index
18818c7
..
761724c
100644
(file)
--- a/
modules/axletter/axletter.inc.php
+++ b/
modules/axletter/axletter.inc.php
@@
-117,10
+117,10
@@
class AXLetter extends MassMailer
if (is_null($uid) && $hash) {
return false;
}
if (is_null($uid) && $hash) {
return false;
}
- $res = XDB::query("SELECT
*
+ $res = XDB::query("SELECT
uid
FROM axletter_ins
WHERE $field={?}", $user);
FROM axletter_ins
WHERE $field={?}", $user);
- if (
!$res->numRows()
) {
+ if (
$res->numRows() != 1
) {
return false;
}
XDB::execute("DELETE FROM axletter_ins
return false;
}
XDB::execute("DELETE FROM axletter_ins