civicrm/civicrm-core — pull request #4646 by eileenmcnaughton (2014-12-03 00:02:48+00:00)
Title: CRM-15550 test + test error fix

When I looked into CRM-15550 & the patch for 4.4 I found that I was getting a fatal (sql) error when trying to send out emails where limit_to=0 and no additional contacts are set. It seemed to me the qualification of the IF in line 1219 ALSO needs to happen in 1303 (line numbers based on ActionSchedule.php patch below)