Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Commit

Permalink
fixed a php7 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schwenzer committed Jan 9, 2017
1 parent bf706c2 commit 13e0270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
$targetPathAbs = $targetPathAbs. '/'. $files['file']['name']; //5
}
$tmp = move_uploaded_file($tempFile,$targetPathAbs); //6
\Dbafs::addResource($targetPath. '/'. $files['file']['name']);
\Dbafs::addResource($targetPath. '/'. $rename);
file_exists($targetPathAbs) == true ? $retVal = json_encode(array('status' => 'ok')) : $retVal = json_encode(array('status' => 'error','value'=>'nofile')); // die Datei ist nicht vorhanden
echo($retVal);
// alte Ordner loeschen
Expand Down

0 comments on commit 13e0270

Please sign in to comment.