View Issue Details

IDProjectCategoryView StatusLast Update
0000466XMB1Bugspublic2011-05-29 14:05
Reporterdeep_blue Assigned Tomiqrogroove  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
Product Version1.9.11.06 
Target Version1.9.11.12Fixed in Version1.9.11.12 
Summary0000466: function altMail incorrectly expects variable to be defined
DescriptionI've been getting lots of these notices in my PHP logs:

PHP Notice: Undefined variable: mail in htdocs/include/functions.inc.php on line 1507
PHP Notice: Trying to get property of non-object in htdocs/include/functions.inc.php on line 1507

After a close look at the relevant line it's at the very top of the function altMail, specifically at:

} elseif ($mail->connection === FALSE) {

however, $mail is only defined on 'then' branch of the same if so it's not defined at this point.

Emails seem to be sent anyway so nothing major.

The issue is still present in trunk afaik.
TagsNo tags attached.
MySQL Version
PHP Version5.3.6
Web ServerOther
Browser
Flags
Original Reporter
SVN Revision2585

Activities

miqrogroove

2011-05-20 09:22

administrator   ~0000316

This is an excellent report. Thank you for the details. It will be at the top of my todo list.

miqrogroove

2011-05-20 10:52

administrator   ~0000317

This should be fixed now. :) There is a nice view of the patch at

http://svn.xmbforum.com/wsvn/XMB/xmb19x/trunk/source/include/functions.inc.php?op=diff&rev=2585&peg=2585

Thanks again for the report.

Issue History

Date Modified Username Field Change
2011-05-20 04:31 deep_blue New Issue
2011-05-20 04:31 deep_blue PHP Version => 5.3.6
2011-05-20 04:31 deep_blue Web Server => Other
2011-05-20 09:22 miqrogroove Note Added: 0000316
2011-05-20 09:22 miqrogroove Status new => confirmed
2011-05-20 09:22 miqrogroove Projection none => minor fix
2011-05-20 09:22 miqrogroove Product Version 1.9.11.08 => 1.9.11.06
2011-05-20 09:22 miqrogroove Target Version => 1.9.11.12
2011-05-20 10:32 miqrogroove Assigned To => miqrogroove
2011-05-20 10:32 miqrogroove Status confirmed => assigned
2011-05-20 10:32 miqrogroove ETA none => < 1 day
2011-05-20 10:52 miqrogroove SVN Revision => 2585
2011-05-20 10:52 miqrogroove Note Added: 0000317
2011-05-20 10:52 miqrogroove Status assigned => resolved
2011-05-20 10:52 miqrogroove Fixed in Version => 1.9.11.12
2011-05-20 10:52 miqrogroove Resolution open => fixed
2011-05-29 14:05 miqrogroove Status resolved => closed