NotifySend.php
authorAlan Knowles <alan@roojs.com>
Fri, 19 Oct 2012 02:50:44 +0000 (10:50 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Oct 2012 02:50:44 +0000 (10:50 +0800)
NotifySend.php

index 1f58161..b4a8d2a 100644 (file)
@@ -226,12 +226,14 @@ class Pman_Core_NotifySend extends Pman
         //print_r($email);exit;
         // should we fetch the watch that caused it.. - which should contain the method to call..
         // --send-to=test@xxx.com
-        if (!empty($opts['send-to'])) {
-            $p->email = $opts['send-to'];
-        }
+       
         if (!empty($email['send-to'])) {
             $p->email = $email['send-to'];
         }
+         if (!empty($opts['send-to'])) {
+            $p->email = $opts['send-to'];
+        }
+        
         //print_r($p);
         require_once 'Validate.php';
         if (!Validate::email($p->email, true)) {