PATCH - Check for email address

_natron - June 11, 2009 - 22:00
Project:Invisimail
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

This patch solves the problem of invisimail displaying a mail icon when an email address was not present.

AttachmentSize
invisimail_checkForString.patch399 bytes

#1

_natron - June 12, 2009 - 14:51

As I look at this further, the mail icon is coming from extlink (extlink.css).

#2

_natron - June 12, 2009 - 15:08

After talking with Crell, I've reworked this patch slightly. Thx Crell! The problem was that if the email field was empty, I would still get ouput.

AttachmentSize
invisimail_checkElement.patch 743 bytes

#3

Crell - June 18, 2009 - 19:39
Status:needs review» needs work

Per coding standards, never ever omit the { } for an if statement. The if statement could also use a one line comment to explain why we're checking for that.

#4

_natron - June 18, 2009 - 19:50
Title:PATCH - Check for $string» PATCH - Check for email address

This patch, revised, checks to see if an email address exists. If not, return.

AttachmentSize
invisimail_checkElement.patch 792 bytes

#5

_natron - June 18, 2009 - 20:23

tab removed.

AttachmentSize
invisimail_checkElement.patch 792 bytes

#6

_natron - June 18, 2009 - 20:32

pardon -- A better comment.

AttachmentSize
invisimail_checkElement.patch 807 bytes

#7

_natron - June 18, 2009 - 21:09
AttachmentSize
invisimail_checkElement.patch 752 bytes

#8

Crell - June 18, 2009 - 21:25
Status:needs work» fixed

The last patch was missing a comment, so I added one and committed it.

#9

System Message - July 2, 2009 - 21:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.