View | Details | Raw Unified | Return to bug 34435
Collapse All | Expand All

(-)a/Koha/Patron/Category.pm (-2 / +1 lines)
Lines 126-132 sub get_password_expiry_date { Link Here
126
    my ($self, $date ) = @_;
126
    my ($self, $date ) = @_;
127
    if ( $self->password_expiry_days ) {
127
    if ( $self->password_expiry_days ) {
128
        $date ||= dt_from_string;
128
        $date ||= dt_from_string;
129
        $date = dt_from_string( $date ) unless ref $date;
129
        $date = ref $date ? $date->clone() : dt_from_string( $date );
130
        return $date->add( days => $self->password_expiry_days )->ymd;
130
        return $date->add( days => $self->password_expiry_days )->ymd;
131
    } else {
131
    } else {
132
        return;
132
        return;
133
- 

Return to bug 34435