mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-05 15:54:03 +01:00
Remove useless pass-by-reference
This commit is contained in:
@@ -476,7 +476,7 @@ class rcube_sieve
|
||||
/**
|
||||
* This is our own debug handler for connection
|
||||
*/
|
||||
public function debug_handler(&$sieve, $message)
|
||||
public function debug_handler($sieve, $message)
|
||||
{
|
||||
rcube::write_log('sieve', preg_replace('/\r\n$/', '', $message));
|
||||
}
|
||||
|
||||
@@ -4564,7 +4564,7 @@ class rcube_imap extends rcube_storage
|
||||
/**
|
||||
* This is our own debug handler for the IMAP connection
|
||||
*/
|
||||
public function debug_handler(&$imap, $message)
|
||||
public function debug_handler($imap, $message)
|
||||
{
|
||||
rcube::write_log('imap', $message);
|
||||
}
|
||||
|
||||
@@ -4093,7 +4093,7 @@ class rcube_imap_generic
|
||||
}
|
||||
|
||||
if ($this->debug_handler) {
|
||||
call_user_func_array($this->debug_handler, array(&$this, $message));
|
||||
call_user_func_array($this->debug_handler, array($this, $message));
|
||||
}
|
||||
else {
|
||||
echo "DEBUG: $message\n";
|
||||
|
||||
@@ -377,7 +377,7 @@ class rcube_smtp
|
||||
/**
|
||||
* This is our own debug handler for the SMTP connection
|
||||
*/
|
||||
public function debug_handler(&$smtp, $message)
|
||||
public function debug_handler($smtp, $message)
|
||||
{
|
||||
// catch AUTH commands and set anonymization flag for subsequent sends
|
||||
if (preg_match('/^Send: AUTH ([A-Z]+)/', $message, $m)) {
|
||||
|
||||
Reference in New Issue
Block a user