bugProject Steve Guttenberg - Bugs: bug #3141, checking for empty variables

 
 

bug #3141: checking for empty variables

Submitted by:  Gavin Brown <jodrell>
Submitted on:  Mon 07 Apr 2003 01:21:42 PM UTC  
 
Category: Standards ComplianceSeverity: 3 - Normal
Item Group: PolicyStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 09 Apr 2003 11:22:29 AM UTC, comment #1:

i've gone through the code and replaced all the empty string matches with empty(). all looks well.

Gavin Brown <jodrell>
Project Administrator
Mon 07 Apr 2003 01:21:42 PM UTC, original submission:

Rather than do things like

if ($var == '') { ... }

We should use

if (empty($var)) { ... }

This is more elegant and more reliable.

Gavin Brown <jodrell>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 09 Apr 2003 11:22:29 AM UTCjodrellStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1