Skip to content

Commit

Permalink
add getter of all supported events
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Jan 21, 2014
1 parent 8336010 commit de234ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sokil/Vast/Ad/InLine/Creative/Linear.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private function _getTrackingEventsDomElement()

public function addTrackingEvent($event, $url)
{
if(!un_array($event, $this->getEventList())) {
if(!in_array($event, $this->getEventList())) {
throw new \Exception('Wrong event specified');
}

Expand Down

0 comments on commit de234ac

Please sign in to comment.