Corrected charset to iso-8859-1
[squirrelmail.git] / functions / arrays.php
index 8cad523e68523e44d97c8efb19f27016abfb9e5f..bec4c986d84e5a6ffefab36383afaec1ff32c52d 100644 (file)
@@ -3,11 +3,10 @@
 /**
  * arrays.php
  *
- * Copyright (c) 2004 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * Contains utility functions for array operations
  *
+ * @copyright © 2004-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  */
@@ -23,7 +22,7 @@
   */
  function sqm_array_swap_values(&$a,$v1,$v2) {
      $r = false;
-     if (in_array($v1,$ar) && in_array($v2,$a)) {
+     if (in_array($v1,$a) && in_array($v2,$a)) {
         $k1 = array_search($v1,$a);
         $k2 = array_search($v1,$a);
         $d = $a[$k1];
@@ -41,7 +40,7 @@
   * @param array $a (recursive) array
   * @param mixed $v value to move
   * @param int $p positions to move
-  * @return bool $succes
+  * @return bool $success
   * @author Marc Groot Koerkamp
   */
 function sqm_array_kmove_value(&$a,$v,$p) {
@@ -74,7 +73,7 @@ function sqm_array_kmove_value(&$a,$v,$p) {
   * @param array $a (recursive) array
   * @param mixed $v value to move
   * @param int $p positions to move
-  * @return bool $succes
+  * @return bool $success
   * @author Marc Groot Koerkamp
   */
 function sqm_array_move_value(&$a,$v,$p) {
@@ -123,7 +122,7 @@ if (!function_exists('array_combine')) {
      *
      * @param array $aK array keys
      * @param array $aV array values
-     * @return mixed $r combined array on succes, false on failure
+     * @return mixed $r combined array on success, false on failure
      * @author Marc Groot Koerkamp
      */
     function array_combine($aK, $aV) {
@@ -139,4 +138,4 @@ if (!function_exists('array_combine')) {
         }
         return $r;
     }
-}
\ No newline at end of file
+}