From 0af1d99ebf47e2028aef143d44b9f428e1a5df19 Mon Sep 17 00:00:00 2001 From: patdenice Date: Fri, 3 Jun 2011 16:40:25 +0000 Subject: bug:2326 Mysql error on picture_modify if tag input is empty. git-svn-id: http://piwigo.org/svn/trunk@11220 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/picture_modify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/picture_modify.php') diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 97bff6e5e..779197f0c 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -164,7 +164,7 @@ if (isset($_POST['submit']) and count($page['errors']) == 0) // time to deal with tags $tag_ids = array(); - if (isset($_POST['tags'])) + if (!empty($_POST['tags'])) { $tag_ids = get_tag_ids($_POST['tags']); } -- cgit v1.2.3