Failure

User tests: Successful: Unsuccessful:

avatar davidhurley
davidhurley
7 Mar 2013

Addresses tracker issue #30181

avatar davidhurley davidhurley - open - 7 Mar 2013
avatar nicksavov
nicksavov - comment - 23 Mar 2013

Thanks for coding this, David!

For anyone interested, here's the direct link to the tracker item on JoomlaCode:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30181

avatar nonumber
nonumber - comment - 28 Apr 2013

Looks ok, however, the lines above the $db stuff ($user and the addIncludePath's) can move down to under this if, so that they do not get executed if the if returns true.

Also the inline setQuery('SELECT id FROM #__users WHERE sendEmail = 1') should be converted to a query object.

$query->select($db->quoteName('id'))
    ->from('#__users')
    ->where($db->quoteName('sendEmail') . ' = 1');
$db->setQuery($query);

Or (not having to use quoteName):

$query->select('u.id')
    ->from('#__users as u')
    ->where('u.sendEmail = 1');
$db->setQuery($query);
avatar elinw
elinw - comment - 7 Oct 2013

@davidhurley Did you want to leave this as is or update the way @nonumber suggested?

avatar davidhurley
davidhurley - comment - 7 Oct 2013

I'll update as suggested for performance.

Thanks,
David Hurley
On Oct 6, 2013 9:04 PM, "elinw" notifications@github.com wrote:

@davidhurley https://github.com/davidhurley Did you want to leave this
as is or update the way @nonumber https://github.com/nonumber suggested?


Reply to this email directly or view it on GitHub#764 (comment)
.

avatar Hackwar
Hackwar - comment - 8 Feb 2014

When? ;-)

avatar phproberto
phproberto - comment - 12 Jun 2014

Updated patch (including suggestions) versus staging: #3764

I'm closing this. Thanks!!

avatar phproberto phproberto - close - 12 Jun 2014

Add a Comment

Login with GitHub to post a comment