diff --git a/PushBots.class.php b/PushBots.class.php index 96e0075..8769e8c 100644 --- a/PushBots.class.php +++ b/PushBots.class.php @@ -170,6 +170,7 @@ public function Tags($tags) { } if(count($tags) > 0){ $this->pushData['tags'] = $tags; + $this->pushOneData['tags'] = $tags; } } @@ -222,6 +223,7 @@ public function Payload($customfields) { } if(count($customfields) > 0){ $this->pushData['payload'] = $customfields; + $this->pushOneData['payload'] = $customfields; } } @@ -233,12 +235,16 @@ public function Payload($customfields) { public function Geo($country , $gov=null) { $this->pushData["geo"] = array(); - - if($country) + $this->pushOneData["geo"] = array(); + + if($country){ $this->pushData["geo"]["country"] = $country; - - if($gov) + $this->pushOneData["geo"]["country"] = $country; + } + if($gov){ $this->pushData["geo"]["gov"] = $gov; + $this->pushOneData["geo"]["gov"] = $gov; + } }