diff options
author | rub <rub@piwigo.org> | 2007-04-14 12:32:01 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-04-14 12:32:01 +0000 |
commit | 0d23430059d55e164e2902099333b9256fb441b3 (patch) | |
tree | f8838b0ee0863cdde8f3ef10d1d10aaccb4c7800 | |
parent | 4bcb652c77732c9f91b458218df68115a89aefe0 (diff) |
Caddie:
Fix issue when the are not pictures attached to disassociated categories
git-svn-id: http://piwigo.org/svn/trunk@1958 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/element_set_global.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/admin/element_set_global.php b/admin/element_set_global.php index ad1ff8135..568a37efb 100644 --- a/admin/element_set_global.php +++ b/admin/element_set_global.php @@ -114,6 +114,8 @@ SELECT id ;'; $dissociables = array_from_query($query, 'id'); + if (!empty($dissociables)) + { $query = ' DELETE FROM '.IMAGE_CATEGORY_TABLE.' @@ -121,6 +123,7 @@ DELETE AND image_id IN ('.implode(',', $dissociables).') '; pwg_query($query); + } update_category($_POST['dissociate']); } |