Skip to content

Commit

Permalink
Edited return
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrogenous committed Feb 1, 2018
1 parent ddd9ce9 commit 79649cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gearman/workers/dropboxWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ function toprakDbxUpload($job) {
$path = DIRECTORY_SEPARATOR . $formid . DIRECTORY_SEPARATOR . $folder . DIRECTORY_SEPARATOR. "questionid".$qid . DIRECTORY_SEPARATOR . $file;
// var_dump($path);
if(!file_exists($base_path.$path)){
echo"Error!File.Does.Not.Exist";
return("Error!File.Does.Not.Exist");
return json_encode(array("Error" => "File Does Not Exist","File" => null,'Folder' => null, "Url" => null, "Remove" => null));
}
else{
$client = new Client($token);
Expand Down

0 comments on commit 79649cf

Please sign in to comment.