Skip to content

Commit

Permalink
Egn class: A minor correction.
Browse files Browse the repository at this point in the history
Signed-off-by:Ivan Tcholakov <[email protected]>
  • Loading branch information
ivantcholakov committed Jun 25, 2017
1 parent ac50634 commit 1efac43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Egn.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ public static function valid($egn) {

$egn = (string) $egn;

// Added by Ivan Tcholakov, 25-JUN-2017.
if (!ctype_digit($egn)) {
return false;
}
//

if (strlen($egn) != 10) {
return false;
}
Expand Down

0 comments on commit 1efac43

Please sign in to comment.