bug 1208: Only use up to 3 parts of the date
authorBenny Baumann <BenBE@geshi.org>
Mon, 9 Sep 2013 00:25:00 +0000 (02:25 +0200)
committerBenny Baumann <BenBE@geshi.org>
Mon, 9 Sep 2013 00:25:00 +0000 (02:25 +0200)
pages/wot/6.php

index bd26557..d1565ba 100644 (file)
@@ -53,7 +53,7 @@
        $suffix = $row['suffix'];
        $dob = $row['dob'];
 
-       $dob_date = explode( '-', $dob);
+       $dob_date = explode('-', $dob, 3);
        $dob_print = sprintf(
                '<tt clsss="accountdetail">%s-%s-%s</tt> (%d %s %d)',
                $dob_date[0], $dob_date[1], $dob_date[2],