OSDN Git Service

BugTrack2/226 unused $matches (pointed out by anonymous)
authorhenoheno <henoheno>
Sun, 1 Apr 2007 10:59:05 +0000 (19:59 +0900)
committerumorigu <umorigu@gmail.com>
Tue, 25 Nov 2014 16:52:33 +0000 (01:52 +0900)
lib/func.php

index cc9c0f3..c92573a 100644 (file)
@@ -382,7 +382,7 @@ function page_list($pages, $cmd = 'read', $withfilename = FALSE)
                        }
                } else {
                        $head = (preg_match('/^([A-Za-z])/', $page, $matches)) ? $matches[1] :
-                               (preg_match('/^([ -~])/', $page, $matches) ? $symbol : $other);
+                               (preg_match('/^([ -~])/', $page) ? $symbol : $other);
                }
 
                $list[$head][$page] = $str;