aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-10 12:56:49 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-10 12:56:49 +0000
commitb6b7331c0a548ed1131c1b0ad2f37ad8ce9fb967 (patch)
treedf4294017447e31ce43a49bc9c4bd99ef2516de0 /mod
parent1dae4ceb737a031299c910c11e75caf626a4f33c (diff)
downloadelgg-b6b7331c0a548ed1131c1b0ad2f37ad8ce9fb967.tar.gz
elgg-b6b7331c0a548ed1131c1b0ad2f37ad8ce9fb967.tar.bz2
Fixed 'all friends' button.
git-svn-id: https://code.elgg.org/elgg/trunk@2702 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/collections.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/notifications/views/default/notifications/subscriptions/collections.php b/mod/notifications/views/default/notifications/subscriptions/collections.php
index 3fcc93fd7..0fe5e45c2 100644
--- a/mod/notifications/views/default/notifications/subscriptions/collections.php
+++ b/mod/notifications/views/default/notifications/subscriptions/collections.php
@@ -65,7 +65,7 @@
if (!empty($collections_preferences) && !is_array($collections_preferences))
$collections_preferences = array($collections_preferences);
if (is_array($collections_preferences))
- if (in_array(0,$collections_preferences)) {
+ if (in_array(-1,$collections_preferences)) {
$collectionschecked[$method] = 'checked="checked"';
} else {
$collectionschecked[$method] = '';
@@ -74,8 +74,8 @@
if ($i > 0) $fields .= "<td class=\"spacercolumn\">&nbsp;</td>";
$fields .= <<< END
<td class="{$method}togglefield">
- <a href="#" border="0" id="{$method}collections0" class="{$method}toggleOff" onclick="adjust{$method}_alt('{$method}collections0'); setCollection([{$members}],'{$method}',0);">
- <input type="checkbox" name="{$method}collections[]" id="{$method}checkbox" onclick="adjust{$method}('{$method}collections0');" value="0" {$collectionschecked[$method]} /></a></td>
+ <a href="#" border="0" id="{$method}collections-1" class="{$method}toggleOff" onclick="adjust{$method}_alt('{$method}collections-1'); setCollection([{$members}],'{$method}',-1);">
+ <input type="checkbox" name="{$method}collections[]" id="{$method}checkbox" onclick="adjust{$method}('{$method}collections-1');" value="-1" {$collectionschecked[$method]} /></a></td>
END;
$i++;
}