Skip to content

Commit 58e604a

Browse files
committed
Fixing an error within the metod get_birthday(). Thank you, @veskoto .
1 parent 00e382c commit 58e604a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Egn.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,6 @@ public static function get_gender($string) {
352352

353353
public static function get_birthday($string) {
354354

355-
if (self::is_foreigner($string)) {
356-
return null;
357-
}
358-
359355
if (!self::valid($string)) {
360356
return null;
361357
}
@@ -372,6 +368,10 @@ public static function is_foreigner($string) {
372368
return false;
373369
}
374370

371+
if (self::valid($string)) {
372+
return false;
373+
}
374+
375375
if (strlen($string) == 10) {
376376

377377
$pnf_weights = array(21, 19, 17, 13, 11, 9, 7, 3, 1);

0 commit comments

Comments
 (0)