Plugins have to be able to update the message cache if they manipulate messages
[squirrelmail.git] / functions / auth.php
index ba8ff5d4835bf0e4aad7656904cfdb0be7277260..53b96d9f717e27ee90ef326bc99bb62dfe9fa452 100644 (file)
@@ -265,7 +265,7 @@ function hmac_md5($data, $key='') {
  *
  * @param string $user Reference to SMTP username
  * @param string $pass Reference to SMTP password (unencrypted)
- * @since 1.5.0
+ * @since 1.4.11
  */
 function get_smtp_user(&$user, &$pass) {
     global $username, $smtp_auth_mech,
@@ -287,5 +287,6 @@ function get_smtp_user(&$user, &$pass) {
     // directly changing the arguments array contents 
     // in your plugin e.g., $args[0] = 'new_username';
     //
-    do_hook('smtp_auth', $temp=array(&$user, &$pass));
+    $temp = array(&$user, &$pass);
+    do_hook('smtp_auth', $temp);
 }