diff options
author | plegall <plg@piwigo.org> | 2006-04-26 21:08:44 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2006-04-26 21:08:44 +0000 |
commit | a52bf8e293c0b55b4d877b154bfd349486897d99 (patch) | |
tree | d708a788df1f5c2f6dcbd4ca62e757938d65d5e0 /admin/include | |
parent | 79cabc6fd9a9b48e89b28de51f32078d2a75cd30 (diff) |
merge -r1276:1277 from branch-1_6 to trunk (bug 228 fixed)
git-svn-id: http://piwigo.org/svn/trunk@1278 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index f9435b1f1..a7402080e 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -1569,7 +1569,7 @@ SELECT MAX(rank) $insert = array( 'name' => $category_name, 'rank' => ++$current_rank, - 'commentable' => $conf['newcat_default_commentable'], + 'commentable' => boolean_to_string($conf['newcat_default_commentable']), 'uploadable' => 'false', ); @@ -1594,7 +1594,7 @@ SELECT id, uppercats, global_rank, visible, status } else { - $insert{'visible'} = $conf['newcat_default_visible']; + $insert{'visible'} = boolean_to_string($conf['newcat_default_visible']); } // at creation, must a category be public or private ? Warning : if the @@ -1606,13 +1606,13 @@ SELECT id, uppercats, global_rank, visible, status } else { - $insert{'status'} = $conf['newcat_default_status']; + $insert{'status'} = boolean_to_string($conf['newcat_default_status']); } } else { - $insert{'visible'} = $conf['newcat_default_visible']; - $insert{'status'} = $conf['newcat_default_status']; + $insert{'visible'} = boolean_to_string($conf['newcat_default_visible']); + $insert{'status'} = boolean_to_string($conf['newcat_default_status']); $insert{'global_rank'} = $insert{'rank'}; } |