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:
shish 2007-07-23 00:30:44 +00:00
parent bd91945c76
commit f948ae8720

View File

@ -69,6 +69,8 @@ class Upload extends Extension {
private function try_upload($file, $tags, $source) {
global $page;
global $config;
if(empty($source)) $source = null;
$ok = false;