[Pmwiki-users] Typo in earlier patch

Christian Ridderström chr
Fri Jan 23 09:40:22 CST 2004


On Fri, 23 Jan 2004, Patrick R. Michaud wrote:

> On Fri, Jan 23, 2004 at 05:01:00PM +0100, Christian Ridderstr?m wrote:
> > Patrick send this patch (I think, unless I managed to copy it incorrectly)
> > 	if ($pagename="") $pagename="Main.HomePage";
> > but unfortunately there's an error in it. (e.g. IMO the '=' should be '==')
> 
> Agreed, the first '=' should be '=='.  Sorry about that.

A PHP-question. What happens with

	if($pagename=="") ...

if $pagename doesn't exist. Will the condition be true or false? (to be on 
the safe side I did:
	if("$pagename"=="") ...

was that overkill?

/Christian

-- 
Dr. Christian Ridderstr?m, +46-8-768 39 44       http://www.md.kth.se/~chr




More information about the pmwiki-users mailing list