[pmwiki-devel] When Readpage fails

Peter Bowers pbowers at pobox.com
Fri Mar 6 13:27:42 CST 2009


What is the normal way of checking whether ReadPage() has been
unsuccessful?  (Or, by extension, RetrieveAuthPage())

I see lots of this:

if (!$page) ...

but my reading of ReadPage() seems to indicate that a failed read will
result in an array ('ctime' => now, 'time' => now).

If I'm interpreting that correctly, then what's the preferred way to check
if the read failed?  (I'm actually more interested in the results of
RetrieveAuthpage() than ReadPage().)

-Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20090306/31c5715a/attachment.html 


More information about the pmwiki-devel mailing list