Skip to content

Commit

Permalink
MDL-27171 messages: some minor fixes in translate_message_default_set…
Browse files Browse the repository at this point in the history
…ting function

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
  • Loading branch information
Ruslan Kabalin committed May 31, 2011
1 parent bf0fb77 commit 8380751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions message/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2353,11 +2353,11 @@ function translate_message_default_setting($plugindefault, $processorname) {
}

$permitted = $permittedvalues[$plugindefault & MESSAGE_PERMITTED_MASK];
$loggedin = $loggedoff = 0x00;
$loggedin = $loggedoff = null;

if (($plugindefault & MESSAGE_PERMITTED_MASK) == MESSAGE_PERMITTED) {
$loggedin = $loggedinstatusvalues[$plugindefault & ~MESSAGE_PERMITTED_MASK & MESSAGE_DEFAULT_LOGGEDIN];
$loggedoff = $loggedinstatusvalues[$plugindefault & ~MESSAGE_PERMITTED_MASK & MESSAGE_DEFAULT_LOGGEDOFF];
$loggedin = $loggedinstatusvalues[$plugindefault & MESSAGE_DEFAULT_LOGGEDIN];
$loggedoff = $loggedinstatusvalues[$plugindefault & MESSAGE_DEFAULT_LOGGEDOFF];
}

return array($permitted, $loggedin, $loggedoff);
Expand Down

0 comments on commit 8380751

Please sign in to comment.