diff --git a/Zencoder.php b/Zencoder.php index 75b9114..901207f 100644 --- a/Zencoder.php +++ b/Zencoder.php @@ -62,7 +62,7 @@ function update_attributes($attributes = array()) { // Create output file objects if($attr_name == "outputs" && is_array($attr_value)) { $this->create_outputs($attr_value); - } elseif (!function_exists($this->$attr_name)) { + } elseif (!method_exists($this, $attr_name)) { $this->$attr_name = $attr_value; } } @@ -237,7 +237,7 @@ function ZencoderOutputNotification($params) { } function catch_and_parse() { - $notificiation_data = json_decode(trim(file_get_contents('php://input')), true); - return new ZencoderOutputNotification($notificiation_data); + $notification_data = json_decode(trim(file_get_contents('php://input')), true); + return new ZencoderOutputNotification($notification_data); } }