mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-09 23:05:04 +02:00
merge r11192 from trunk : mysql warning if tag field is empty
git-svn-id: http://piwigo.org/svn/branches/2.2@11193 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -106,11 +106,15 @@ SELECT id, date_creation
|
||||
array_push($datas, $data);
|
||||
|
||||
// tags management
|
||||
if (isset($_POST[ 'tags-'.$row['id'] ]))
|
||||
if (isset($_POST[ 'tags-'.$row['id'] ]) AND $_POST[ 'tags-'.$row['id'] ] != null)
|
||||
{
|
||||
$tag_ids = get_tag_ids($_POST[ 'tags-'.$row['id'] ]);
|
||||
set_tags($tag_ids, $row['id']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$tag_ids = array();
|
||||
}
|
||||
set_tags($tag_ids, $row['id']);
|
||||
}
|
||||
|
||||
mass_updates(
|
||||
|
||||
Reference in New Issue
Block a user