> mgd_errno();
> $res = mgd_delete_host($whatever);
> if ($res) { $error = mgd_errno(); }
That would be
if (!$res) { $error = mgd_errno(); }
> The first call guarantees you're not seeing any old results. This is
> important because mgd_errno holds the _first_ failure it meets while
> processing a call and if errno is still set before doing a call it _will
> not change_. The reason for this is that as a result of an earlier error
s/earlier/later/
> like MGD_ERR_NOT_OBJECT (calling a method on a value that's not an object)
> may be caused by an earlier error of MGD_ERR_ACCESS_DENIED. The former
s/former/first/
> error is more useful to get the problem resolved, so that's what's
> reported.
Emile "I need more caffeine. That must be it." Heyns
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]