Ignore:
Timestamp:
01/17/10 15:43:13 (14 years ago)
Author:
nanardon
Message:
  • fix numeric evaluation to discover next uid/gid
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Objects.pm

    r598 r628  
    423423        my $obj = $base->get_object($class->type, $_) or next; 
    424424        my $id = $obj->_get_c_field($field) or next; 
    425         $existsid{$id} = 1; 
    426     } 
     425        $existsid{$id + 0} = 1; 
     426    } 
     427    $min += 0; 
     428    $max += 0; 
    427429    for(my $i = $min; $i <= $max; $i++) { 
    428         $existsid{$i} or return $i; 
     430        $existsid{$i + 0} or do { 
     431            $base->log(LA_DEBUG, "Next %s found: %d", $field, $i); 
     432            return $i; 
     433        }; 
    429434    } 
    430435    return; 
Note: See TracChangeset for help on using the changeset viewer.