aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-06-02 20:20:42 +0000
committerplegall <plg@piwigo.org>2009-06-02 20:20:42 +0000
commitbdf463d2b7575b2e03cd607bc47a2bec8303df92 (patch)
tree83a1f3632c1fb9f43f469a8eeae7583d7680277a
parent32a24fefc9aece305d244933ec9e3272978193bc (diff)
bug 1022 fixed: a photo can be associateed to no category (now that a photo
can have NULL as storage_category_id, it's possible to have no associated category), the admin/picture_modify doesn't break anymore. git-svn-id: http://piwigo.org/svn/branches/2.0@3389 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/picture_modify.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php
index 9e7c063f5..c142ae955 100644
--- a/admin/picture_modify.php
+++ b/admin/picture_modify.php
@@ -412,7 +412,7 @@ $query.= '
display_select_cat_wrapper($query, array(), 'associated_options');
$result = pwg_query($query);
-$associateds = array();
+$associateds = array(-1);
if (isset($storage_category_id))
{
array_push($associateds, $storage_category_id);