diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2011-08-24 15:22:49 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2011-08-24 15:22:49 -0700 |
commit | 2dace654a99396ab674f50829046ed703d3a36be (patch) | |
tree | 57add762814a2156eac54a2d50658a805be60ff9 /mod/categories/views/default/input | |
parent | 9f13557c2e7422cb15ce109adbe5714d6d78fc9e (diff) | |
download | elgg-2dace654a99396ab674f50829046ed703d3a36be.tar.gz elgg-2dace654a99396ab674f50829046ed703d3a36be.tar.bz2 |
Refs #3746. Updated categories for 1.8. Still some deprecation notices, but functional.
Diffstat (limited to 'mod/categories/views/default/input')
-rw-r--r-- | mod/categories/views/default/input/categories.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/categories/views/default/input/categories.php b/mod/categories/views/default/input/categories.php index 1f71dc0b4..75960d257 100644 --- a/mod/categories/views/default/input/categories.php +++ b/mod/categories/views/default/input/categories.php @@ -23,6 +23,10 @@ if (!empty($categories)) { $categories = array($categories); } + // checkboxes want Label => value, so in our case we need category => category + $categories = array_flip($categories); + array_walk($categories, create_function('&$v, $k', '$v = $k;')); + ?> <div class="categories"> |