Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8956

Re: Have I been staring at the screen too long?

From Scott Johnson <noonehome@chalupasworld.com>
Newsgroups comp.lang.php
Subject Re: Have I been staring at the screen too long?
Date 2013-04-06 06:22 -0700
Organization A noiseless patient Spider
Message-ID <kjp7f1$1t0$1@dont-email.me> (permalink)
References <72pul85s8q79k1m99mkblm7pfq2tdd7vku@4ax.com>

Show all headers | View raw


On 4/5/2013 6:20 PM, Richard Yates wrote:
> I ran across this line that is apparently generated by Dreamweaver
> CS4's function for checking authorization for page access. Doesn't the
> content of the 'if' clause ALWAYS evaluate to false regardless of the
> value of $strUsers?
>
>      if (($strUsers == "") && false) { $isValid = true; }
>
> If so, is there some obscure purpose anyone can think of for this
> line?
>
> Richard Yates
>

At first glance it looks like it is taking something that would 
otherwise be false and making evaluate to true.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Have I been staring at the screen too long? Richard Yates <richard@yatesguitar.com> - 2013-04-05 18:20 -0700
  Re: Have I been staring at the screen too long? Jerry Stuckle <jstucklex@attglobal.net> - 2013-04-05 22:04 -0400
  Re: Have I been staring at the screen too long? Scott Johnson <noonehome@chalupasworld.com> - 2013-04-06 06:22 -0700
  Re: Have I been staring at the screen too long? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-04-06 17:50 +0200
    Re: Have I been staring at the screen too long? Scott Johnson <noonehome@chalupasworld.com> - 2013-04-06 09:27 -0700
      Re: Have I been staring at the screen too long? The Natural Philosopher <tnp@invalid.invalid> - 2013-04-06 19:58 +0100
        Re: Have I been staring at the screen too long? Scott Johnson <noonehome@chalupasworld.com> - 2013-04-06 15:02 -0700
  Re: Have I been staring at the screen too long? Scott Johnson <noonehome@chalupasworld.com> - 2013-04-06 09:36 -0700
  Re: Have I been staring at the screen too long? mirceatanasie94@gmail.com - 2013-04-11 03:57 -0700

csiph-web