merge r11220 from trunk to branch 2.2

bug:2326
Mysql error on picture_modify if tag input is empty.

git-svn-id: http://piwigo.org/svn/branches/2.2@11221 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice
2011-06-03 16:42:02 +00:00
parent 9cf4a70397
commit 054592ce9f
2 changed files with 3 additions and 6 deletions
+2 -5
View File
@@ -106,14 +106,11 @@ SELECT id, date_creation
array_push($datas, $data);
// tags management
if (isset($_POST[ 'tags-'.$row['id'] ]) AND $_POST[ 'tags-'.$row['id'] ] != null)
$tag_ids = array();
if (!empty($_POST[ 'tags-'.$row['id'] ]))
{
$tag_ids = get_tag_ids($_POST[ 'tags-'.$row['id'] ]);
}
else
{
$tag_ids = array();
}
set_tags($tag_ids, $row['id']);
}