@@ 241-247 (lines=7) @@ | ||
238 | ] |
|
239 | ]); |
|
240 | ||
241 | while ($Qproducts->fetch()) { |
|
242 | $audience[$Qproducts->valueInt('customers_id')] = [ |
|
243 | 'firstname' => $Qproducts->value('customers_firstname'), |
|
244 | 'lastname' => $Qproducts->value('customers_lastname'), |
|
245 | 'email_address' => $Qproducts->value('customers_email_address') |
|
246 | ]; |
|
247 | } |
|
248 | ||
249 | $Qcustomers = $OSCOM_Db->get([ |
|
250 | 'customers c', |
|
@@ 264-270 (lines=7) @@ | ||
261 | 'ci.global_product_notifications' => '1' |
|
262 | ]); |
|
263 | ||
264 | while ($Qcustomers->fetch()) { |
|
265 | $audience[$Qcustomers->valueInt('customers_id')] = [ |
|
266 | 'firstname' => $Qcustomers->value('customers_firstname'), |
|
267 | 'lastname' => $Qcustomers->value('customers_lastname'), |
|
268 | 'email_address' => $Qcustomers->value('customers_email_address') |
|
269 | ]; |
|
270 | } |
|
271 | } else { |
|
272 | $chosen = []; |
|
273 | ||
@@ 292-298 (lines=7) @@ | ||
289 | ||
290 | $Qproducts->execute(); |
|
291 | ||
292 | while ($Qproducts->fetch()) { |
|
293 | $audience[$Qproducts->valueInt('customers_id')] = [ |
|
294 | 'firstname' => $Qproducts->value('customers_firstname'), |
|
295 | 'lastname' => $Qproducts->value('customers_lastname'), |
|
296 | 'email_address' => $Qproducts->value('customers_email_address') |
|
297 | ]; |
|
298 | } |
|
299 | ||
300 | $Qcustomers = $OSCOM_Db->get([ |
|
301 | 'customers c', |
|
@@ 315-321 (lines=7) @@ | ||
312 | 'ci.global_product_notifications' => '1' |
|
313 | ]); |
|
314 | ||
315 | while ($Qcustomers->fetch()) { |
|
316 | $audience[$Qcustomers->valueInt('customers_id')] = [ |
|
317 | 'firstname' => $Qcustomers->value('customers_firstname'), |
|
318 | 'lastname' => $Qcustomers->value('customers_lastname'), |
|
319 | 'email_address' => $Qcustomers->value('customers_email_address') |
|
320 | ]; |
|
321 | } |
|
322 | } |
|
323 | ||
324 | $notificationEmail = new Mail(); |