Skip to content

Notice warnings with E_ALL #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Zencoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ class ZencoderJob {
function ZencoderJob($params, $options = array()) {

// Build using params if not sending request
if($options["build"]) {
if(isset($options["build"])) {
$this->update_attributes($params);
return true;
}

if($options["url"]) $this->new_job_url = $options["url"];
if(isset($options["url"])) $this->new_job_url = $options["url"];
$this->new_job_params = $params;
$this->created = $this->create();
}
Expand Down Expand Up @@ -75,7 +75,7 @@ function update_attributes($attributes = array()) {
// Use the Label for the key if avaiable.
function create_outputs($outputs = array()) {
foreach($outputs as $output_attrs) {
if($output_attrs["label"]) {
if(isset($output_attrs["label"])) {
$this->outputs[$output_attrs["label"]] = new ZencoderOutputFile($output_attrs);
} else {
$this->outputs[] = new ZencoderOutputFile($output_attrs);
Expand Down Expand Up @@ -233,8 +233,8 @@ class ZencoderOutputNotification {
var $job;

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

function catch_and_parse() {
Expand Down