@@ -35,12 +35,12 @@ class ZencoderJob {
35
35
function ZencoderJob ($ params , $ options = array ()) {
36
36
37
37
// Build using params if not sending request
38
- if ($ options ["build " ]) {
38
+ if (isset ( $ options ["build " ]) ) {
39
39
$ this ->update_attributes ($ params );
40
40
return true ;
41
41
}
42
42
43
- if ($ options ["url " ]) $ this ->new_job_url = $ options ["url " ];
43
+ if (isset ( $ options ["url " ]) ) $ this ->new_job_url = $ options ["url " ];
44
44
$ this ->new_job_params = $ params ;
45
45
$ this ->created = $ this ->create ();
46
46
}
@@ -75,7 +75,7 @@ function update_attributes($attributes = array()) {
75
75
// Use the Label for the key if avaiable.
76
76
function create_outputs ($ outputs = array ()) {
77
77
foreach ($ outputs as $ output_attrs ) {
78
- if ($ output_attrs ["label " ]) {
78
+ if (isset ( $ output_attrs ["label " ]) ) {
79
79
$ this ->outputs [$ output_attrs ["label " ]] = new ZencoderOutputFile ($ output_attrs );
80
80
} else {
81
81
$ this ->outputs [] = new ZencoderOutputFile ($ output_attrs );
@@ -233,8 +233,8 @@ class ZencoderOutputNotification {
233
233
var $ job ;
234
234
235
235
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 ));
238
238
}
239
239
240
240
function catch_and_parse () {
0 commit comments