printCommentErrors() - isset() always TRUE

Hello,

i just working on my new Template and yesterday i updatet my local zenphoto installation. Now i noticed that the template-function.php printCommentErrors() prints always out the <div class="error"></div> without any error.

I looked in the source with the following code:
`

function printCommentErrors($class = 'error') {

global $_zp_comment_error;

if (isset($_zp_comment_error)) {

echo "
";

switch ($_zp_comment_error) { *snip* }

echo "
";

}

return $_zp_comment_error;

}

`
I checked the var $_zp_comment_error and this var is always set (isset() == TRUE); but with no value.

Now my Question, is this fault only in my installation?

Tom

Comments

  • My Workaround:

    `

    global $_zp_comment_error;

    if(!$_zp_comment_error) unset($_zp_comment_error);

    `

    I use Borders on my <div class="error"></div> boxes, so i can always see the Border - also if no Error suplied.

    Tom
  • You can download the nightly build. This problem was reported and fixed yesterday.

    But, of course, your workaround will be fine too.
  • thx 4 your fast Support :)
Sign In or Register to comment.