Notify.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 15 Aug 2011 06:50:03 +0000 (14:50 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 15 Aug 2011 06:50:03 +0000 (14:50 +0800)
Notify.php

index a3d8dec..dc3558c 100644 (file)
@@ -178,7 +178,9 @@ class Pman_Core_Notify extends Pman
         if ($this->force) {
             $app .= ' -f';
         }
-        
+        if (!empty($this->send_to)) {
+            $app .= ' --sent-to='.escapeshellarg($this->send_to);
+        }
         $cmd = $php . ' ' . $app. ' &';
         
         echo $cmd . "\n";