Add a token to the request
This commit is contained in:
		@@ -77,6 +77,11 @@ class events {
 | 
				
			|||||||
            $events = unserialize(gzuncompress(base64_decode($callback->events)));
 | 
					            $events = unserialize(gzuncompress(base64_decode($callback->events)));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (boolval($events[$data["eventname"]])) {
 | 
					            if (boolval($events[$data["eventname"]])) {
 | 
				
			||||||
 | 
					                /* Adding to the data token */
 | 
				
			||||||
 | 
					                if (boolval($callback->token)) {
 | 
				
			||||||
 | 
					                    $data["token"] = $callback->token;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                self::send($data, $callback);
 | 
					                self::send($data, $callback);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user