Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-27171 messages: some minor fixes in translate_message_default_set…

…ting function

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
  • Loading branch information...
commit 838075147bcdd629b163e705cc3b315072dccda2 1 parent bf0fb77
Ruslan Kabalin authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 message/lib.php
View
6 message/lib.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.