Purchase : test $_FILES before trying to save file
This commit is contained in:
parent
9f3e308a21
commit
067434e520
2 changed files with 4 additions and 2 deletions
|
|
@ -262,6 +262,9 @@ class Acc_Document extends Document {
|
|||
/**
|
||||
* pj is the $_FILES key
|
||||
*/
|
||||
if ( $_FILES['pj']['name']=="") {
|
||||
return false;
|
||||
}
|
||||
$a_file= $this->db->upload('pj',only_oid:false);
|
||||
if ($a_file == false) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue