projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent sending of empty NLs.
[platal.git]
/
bin
/
cron
/
compliance.php
diff --git
a/bin/cron/compliance.php
b/bin/cron/compliance.php
index
ee23dad
..
3c32305
100755
(executable)
--- a/
bin/cron/compliance.php
+++ b/
bin/cron/compliance.php
@@
-1,7
+1,7
@@
#!/usr/bin/php5 -q
<?php
/***************************************************************************
#!/usr/bin/php5 -q
<?php
/***************************************************************************
-* Copyright (C) 2003-201
0
Polytechnique.org *
+* Copyright (C) 2003-201
1
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-54,7
+54,7
@@
function discardExpiredSessions($userPerms, $retentionPeriod, $minimalBacklog) {
JOIN (SELECT a.uid,
(SELECT us.start
FROM log_sessions AS us
JOIN (SELECT a.uid,
(SELECT us.start
FROM log_sessions AS us
- WHERE us.uid = a.uid
+ WHERE us.uid = a.uid
AND (us.suid IS NULL OR us.suid = 0)
ORDER BY us.start DESC
LIMIT {?}, 1) AS no_discard_limit
FROM #x5dat#.accounts AS a
ORDER BY us.start DESC
LIMIT {?}, 1) AS no_discard_limit
FROM #x5dat#.accounts AS a