Commit e228e637c87db67361a69c536aa678e87f9170a6
1 parent
59fa0494
KTC-646 Added check on users that have never logged in.
"Issues with reporting on DMS.jamwarehouse.com" Fixed. Committed by: Megan Watson Reviewed by: Kevin Cyster
Showing
1 changed file
with
6 additions
and
0 deletions
lib/users/User.inc
| @@ -447,6 +447,12 @@ class User extends KTEntity { | @@ -447,6 +447,12 @@ class User extends KTEntity { | ||
| 447 | ), array('multi' => true)); | 447 | ), array('multi' => true)); |
| 448 | } | 448 | } |
| 449 | 449 | ||
| 450 | + function getByLastLoginNever() { | ||
| 451 | + $aOptions['orderby'] = 'name'; | ||
| 452 | + $sWhereClause = 'last_login is null'; | ||
| 453 | + return KTEntityUtil::getList2('User', $sWhereClause, $aOptions); | ||
| 454 | + } | ||
| 455 | + | ||
| 450 | function getByLastLoginAfter($dDateTime) { | 456 | function getByLastLoginAfter($dDateTime) { |
| 451 | return KTEntityUtil::getByDict('User', array( | 457 | return KTEntityUtil::getByDict('User', array( |
| 452 | 'last_login' => array('type' => 'after', 'value' => $dDateTime), | 458 | 'last_login' => array('type' => 'after', 'value' => $dDateTime), |