diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-15 20:57:36 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-15 20:57:36 +0000 |
commit | 06e270fa999bccf1ea82f0ff340c09e2fa9e4655 (patch) | |
tree | 03adbae511ef3e4608b50514120d5eddf7dbd6b8 /views/default | |
parent | e8b8ce3e70dbbc9d5ec03f8c6e4b62b4dd5122f8 (diff) | |
download | elgg-06e270fa999bccf1ea82f0ff340c09e2fa9e4655.tar.gz elgg-06e270fa999bccf1ea82f0ff340c09e2fa9e4655.tar.bz2 |
checking if categories are set before looping (hellekin)
git-svn-id: http://code.elgg.org/elgg/trunk@7637 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/admin/plugins/advanced.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/views/default/admin/plugins/advanced.php b/views/default/admin/plugins/advanced.php index 195df5169..f2eb56324 100644 --- a/views/default/admin/plugins/advanced.php +++ b/views/default/admin/plugins/advanced.php @@ -26,9 +26,11 @@ foreach ($installed_plugins as $id => $plugin) { unset($installed_plugins[$id]); } - foreach ($plugin_categories as $category) { - if (!array_key_exists($category, $categories)) { - $categories[$category] = elgg_echo("admin:plugins:label:moreinfo:categories:$category"); + if (isset($plugin_categories)) { + foreach ($plugin_categories as $category) { + if (!array_key_exists($category, $categories)) { + $categories[$category] = elgg_echo("admin:plugins:label:moreinfo:categories:$category"); + } } } } |