gwynne                                   Wed, 29 Jul 2009 18:29:12 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=286528

Log:
the ISO/UTF-8 junk should no longer be needed

Changed paths:
    U   SVNROOT/hook-common.inc.php

Modified: SVNROOT/hook-common.inc.php
===================================================================
--- SVNROOT/hook-common.inc.php 2009-07-29 17:35:19 UTC (rev 286527)
+++ SVNROOT/hook-common.inc.php 2009-07-29 18:29:12 UTC (rev 286528)
@@ -102,24 +102,13 @@
 function find_user($author)
 {
     $usersDB = file(__DIR__ . '/users.db');
-    $saw_last_ISO = FALSE;
     foreach ($usersDB as $userline) {
         list ($username, $fullname, $email) = explode(":", trim($userline));
-        if ($username === 'ladderalice') {
-            $saw_last_ISO = TRUE;
-        }
         if ($username === $author) {
-            if ($saw_last_ISO !== TRUE) {
-                $fullname = iconv("ISO-8859-1", "UTF-8//TRANSLIT", $fullname);
-            }
-            $result = array($fullname, $email);
-            break;
+            return array($fullname, $email);
         }
     }
-    if (!isset($result)) {
-        fail("No such user.\n");
-    }
-    return $result;
+    fail("No such user.\n");
 }

 function common_prefix($str1, $str2)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to