Results 1 to 3 of 3

Thread: is this a bug

  1. #1
    nathan
    Guest

    Question is this a bug

    somewhere in profile_fields.php, line 882

    if ( strpos( $field['visible'], 'user' ) !==
    false)

    and not just that, there are a lot of occurences of the !==, which i think should
    be "!=" (without the qoutes), isn't it?


    am i correct guys?
    Last edited by nathan; 02-02-2007 at 10:12 PM.

  2. #2
    ijk
    ijk is offline

    Join Date
    Apr 2005
    Posts
    340

    Default operators

    have a look here this might help

    http://uk2.php.net/manual/en/languag...comparison.php

    able 15.4. Comparison Operators
    Example Name Result
    $a == $b Equal TRUE if $a is equal to $b.
    $a === $b Identical TRUE if $a is equal to $b, and they are of the same type. (introduced in PHP 4)
    $a != $b Not equal TRUE if $a is not equal to $b.
    $a <> $b Not equal TRUE if $a is not equal to $b.
    $a !== $b Not identical TRUE if $a is not equal to $b, or they are not of the same type. (introduced in PHP 4)
    $a < $b Less than TRUE if $a is strictly less than $b.
    $a > $b Greater than TRUE if $a is strictly greater than $b.
    $a <= $b Less than or equal to TRUE if $a is less than or equal to $b.
    $a >= $b Greater than or equal to TRUE if $a is greater than or equal to $b.

    as you see !== is better validation than just !=
    Last edited by ijk; 02-03-2007 at 01:12 PM.
    AE Version 4.0 IQ

  3. #3
    nathan
    Guest

    Default thanks

    thanks for the reply.... that cleared my doubts......thank you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •