check for javascript returning null

git-svn-id: file:///home/shish/svn/shimmie2/trunk@684 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-01-02 23:45:00 +00:00
parent cecbfea5aa
commit 7ae38e9ef6

View File

@ -47,7 +47,7 @@ class Upload extends Extension {
if($this->can_upload($user)) {
$url = $_GET['url'];
$tags = array('tagme');
if(!empty($_GET['tags'])) {
if(!empty($_GET['tags']) && $_GET['tags'] != "null") {
$tags = tag_explode($_GET['tags']);
}
$ok = $this->try_transload($url, $tags, $url);