[pmwiki-devel] php logic question

Hans design5 at softflow.co.uk
Tue Mar 13 16:05:39 CDT 2007


Tuesday, March 13, 2007, 8:59:20 PM, christian wrote:

> I'm no php expert, but '!' should have higher precedence than '||' (OR),
> so just use

>         if (!$page || !$permit)

> Um... what exactly is '$page'?

thank you!

$page is THE page, from
$page = RetrieveAuthPage($targetname, $FoxAuth, true);

if no authorisation is given the var is empty, if authorised
$page is created as an array, and !$page is false.

Hans




More information about the pmwiki-devel mailing list