From 88995d3be1dea9455f9a15f3f6681bc44d351cbf Mon Sep 17 00:00:00 2001 From: Jim Puls Date: Tue, 24 Aug 2010 21:14:38 +0000 Subject: [PATCH 1/2] This function_exists should be a method_exists --- Zencoder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zencoder.php b/Zencoder.php index 75b9114..f109aef 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; } } From 6af1058a33b42da0660f015316fdb55f22f695da Mon Sep 17 00:00:00 2001 From: Jim Puls Date: Tue, 31 Aug 2010 18:55:01 +0000 Subject: [PATCH 2/2] Fix spelling error --- Zencoder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zencoder.php b/Zencoder.php index f109aef..901207f 100644 --- a/Zencoder.php +++ b/Zencoder.php @@ -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); } }