projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af65d16
)
DataObjects/Events.php
author
Alan Knowles
<alan@roojs.com>
Wed, 17 Oct 2012 10:03:01 +0000
(18:03 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 17 Oct 2012 10:03:01 +0000
(18:03 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
4fc3c34
..
16406da
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-428,6
+428,9
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
$i=0;
$files = array();
foreach ($_FILES as $k=>$f){
+ if (empty($f['tmp_name'])) {
+ continue;
+ }
$i++;
$files[$k] = $f;
$files[$k]['tmp_name'] = $this->id . '.file_'. $i.'.jpg';