Bladeren bron

Spelling fix

pdontthink 19 jaren geleden
bovenliggende
commit
92c169c2c0
2 gewijzigde bestanden met toevoegingen van 8 en 8 verwijderingen
  1. 4 4
      functions/arrays.php
  2. 4 4
      src/compose.php

+ 4 - 4
functions/arrays.php

@@ -40,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) {
@@ -73,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) {
@@ -122,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) {
@@ -138,4 +138,4 @@ if (!function_exists('array_combine')) {
         }
         return $r;
     }
-}
+}

+ 4 - 4
src/compose.php

@@ -1618,12 +1618,12 @@ function deliverMessage($composeMessage, $draft=false) {
             return false;
         }
     }
-    $succes = false;
+    $success = false;
     if ($stream) {
         $length = $deliver->mail($composeMessage, $stream);
-        $succes = $deliver->finalizeStream($stream);
+        $success = $deliver->finalizeStream($stream);
     }
-    if (!$succes) {
+    if (!$success) {
         $msg  = $deliver->dlv_msg . '<br />' .
             _("Server replied:") . ' ' . $deliver->dlv_ret_nr . ' ' .
             $deliver->dlv_server_msg;
@@ -1693,7 +1693,7 @@ function deliverMessage($composeMessage, $draft=false) {
         }
         sqimap_logout($imap_stream);
     }
-    return $succes;
+    return $success;
 }
 
 ?>