Skip to content

Commit c3a692d

Browse files
committed
Fixed notice warnings when error_reporting set to E_ALL
1 parent 27d855f commit c3a692d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Zencoder.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ class ZencoderJob {
3535
function ZencoderJob($params, $options = array()) {
3636

3737
// Build using params if not sending request
38-
if($options["build"]) {
38+
if(isset($options["build"])) {
3939
$this->update_attributes($params);
4040
return true;
4141
}
4242

43-
if($options["url"]) $this->new_job_url = $options["url"];
43+
if(isset($options["url"])) $this->new_job_url = $options["url"];
4444
$this->new_job_params = $params;
4545
$this->created = $this->create();
4646
}
@@ -75,7 +75,7 @@ function update_attributes($attributes = array()) {
7575
// Use the Label for the key if avaiable.
7676
function create_outputs($outputs = array()) {
7777
foreach($outputs as $output_attrs) {
78-
if($output_attrs["label"]) {
78+
if(isset($output_attrs["label"])) {
7979
$this->outputs[$output_attrs["label"]] = new ZencoderOutputFile($output_attrs);
8080
} else {
8181
$this->outputs[] = new ZencoderOutputFile($output_attrs);
@@ -233,8 +233,8 @@ class ZencoderOutputNotification {
233233
var $job;
234234

235235
function ZencoderOutputNotification($params) {
236-
if($params["output"]) $this->output = new ZencoderOutputFile($params["output"]);
237-
if($params["job"]) $this->job = new ZencoderJob($params["job"], array("build" => true));
236+
if(isset($params["output"])) $this->output = new ZencoderOutputFile($params["output"]);
237+
if(isset($params["job"])) $this->job = new ZencoderJob($params["job"], array("build" => true));
238238
}
239239

240240
function catch_and_parse() {

0 commit comments

Comments
 (0)