No Projects Message
Posted by: skoobiedu (---.austin.res.rr.com)
Date: March 09, 2011 05:04AM

There's a logic error in the index.php file that comes with WS. On line 305 (in my version):
...
// recuperation des projets
...
$projectContents = '';
...
if (!isset($projectContents))
...
the condition will always be false because $projectContents is initialized to an empty string; and isset determines if a variable is set and is not NULL.

To fix this, change it to the following:
...
// recuperation des projets
...
$projectContents = '';
...
if (empty($projectContents))
...
empty (intuitively) determines whether a variable is empty.

See the following PHP doc pages for more info:
-- isset en, fr
-- empty en, fr

Timeless Thoughts of Imagination
-----------------------------------------------------
I am pessimistically optimistic.

Options: ReplyQuote
Re: No Projects Message
Posted by: skoobiedu (---.austin.res.rr.com)
Date: March 09, 2011 05:10AM

On a side note: the link for the English FAQ is wrong. The current value is:
http://www.en.wampserver.com/faq.php
The correct value should be:
http://www.wampserver.com/en/faq.php

I know this value isn't used anywhere, so this is just for correctness.

Timeless Thoughts of Imagination
-----------------------------------------------------
I am pessimistically optimistic.

Options: ReplyQuote
Re: No Projects Message
Posted by: skoobiedu (---.austin.res.rr.com)
Date: March 09, 2011 05:13AM

The same logic error is on line 290:
...
// recuperation des alias
...
if (!isset($aliasContents))
...

Timeless Thoughts of Imagination
-----------------------------------------------------
I am pessimistically optimistic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.