[dev] Auth w/ SQL backends (Pear matter)

Chuck Hagenbuch chuck@horde.org
Mon, 20 Aug 2001 17:05:08 -0400


Quoting Cynic <cynic@mail.cz>:

> Ok, so fetchRow() is called with only one argument in Horde,
> while Pear expects two.
> 
> $row = $result->fetchRow(DB_GETMODE_ASSOC);
> (http://demo.horde.org/devel/horde/chora/co.php/horde/lib/Auth/sql.php?r=1.9)
> 
> the above line should be changed to this:
> $row = $result->fetchRow($result->result, DB_GETMODE_ASSOC);

No. $result is a DB_Result object. Look at the fetchRow() method in the 
DB_result class (it's in DB.php).

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
Some fallen angels have their good reasons.