@@ 379-391 (lines=13) @@ | ||
376 | if ($guid) { // Is the guid > 0? |
|
377 | // Are we overriding delivery? |
|
378 | $methods = $methods_override; |
|
379 | if (!$methods) { |
|
380 | $tmp = get_user_notification_settings($guid); |
|
381 | $methods = array(); |
|
382 | // $tmp may be false. don't cast |
|
383 | if (is_object($tmp)) { |
|
384 | foreach ($tmp as $k => $v) { |
|
385 | // Add method if method is turned on for user! |
|
386 | if ($v) { |
|
387 | $methods[] = $k; |
|
388 | } |
|
389 | } |
|
390 | } |
|
391 | } |
|
392 | ||
393 | if ($methods) { |
|
394 | // Deliver |
|
@@ 513-522 (lines=10) @@ | ||
510 | if ($guid) { // Is the guid > 0? |
|
511 | // Are we overriding delivery? |
|
512 | $methods = $methods_override; |
|
513 | if (!$methods) { |
|
514 | $tmp = (array)get_user_notification_settings($guid); |
|
515 | $methods = array(); |
|
516 | foreach ($tmp as $k => $v) { |
|
517 | // Add method if method is turned on for user! |
|
518 | if ($v) { |
|
519 | $methods[] = $k; |
|
520 | } |
|
521 | } |
|
522 | } |
|
523 | ||
524 | if ($methods) { |
|
525 | // Deliver |