if source is empty, set it to null in the database
git-svn-id: file:///home/shish/svn/shimmie2/trunk@353 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
bd91945c76
commit
f948ae8720
@ -70,6 +70,8 @@ class Upload extends Extension {
|
|||||||
global $page;
|
global $page;
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
if(empty($source)) $source = null;
|
||||||
|
|
||||||
$ok = false;
|
$ok = false;
|
||||||
|
|
||||||
if(!file_exists($file['tmp_name'])) {
|
if(!file_exists($file['tmp_name'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user