From f948ae87200a88c1f31e1f1b6588df51b86ad2ea Mon Sep 17 00:00:00 2001 From: shish Date: Mon, 23 Jul 2007 00:30:44 +0000 Subject: [PATCH] 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 --- ext/upload/main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/upload/main.php b/ext/upload/main.php index cd0d782d..7aa2aa33 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -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;