[kronolith] api coding

Chuck Hagenbuch chuck@horde.org
Thu, 25 Oct 2001 12:15:31 -0400


Quoting Jan Schneider <jan@horde.org>:

> Let's say we have a full horde framework, a user chooses to display the due
> tasks in his calendar but after that the administrator disables nag. Now the
> user gets an error message in his calendar all day long and isn't able to 
> switch this preference off anymore.

If Nag is disabled, you'd get back a PEAR_Error from the function. There are
other scenarios in which Nag isn't disabled, but you might get a PEAR_Error back
anyway. So why not just check the return value?

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"What was and what may be, lie, like children whose faces we cannot see, in the
arms of silence. All we ever have is here, now." - Ursula K. Le Guin