[sork] passwd bug (CVS HEAD)

Eric Rostetter eric.rostetter@physics.utexas.edu
Sat Nov 23 03:23:32 2002


Quoting Mike Cochrane <mike@graftonhall.co.nz>:

> In the if statement above that:
>     if (!isset($backend_key) && substr($key, 0, 1) != '_') {
>         $backend_key = $key;
>     }
> It sets the backend_key to the first backend.

The prefered is always set (to '') so the above doesn't work.  I just 
did a comit with empty() instead of isset() and it seems to fix all
the problems.  (If a real value is set, it will need to be non-empty
to make sense, so this fix should be valid).

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the sork mailing list