Skip to content

Commit d1d0470

Browse files
committed
Update GD.php
1 parent 4fc6cfc commit d1d0470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Image/Canvas/GD.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,9 +1861,9 @@ function _version()
18611861
}
18621862
}
18631863

1864-
preg_match('/\d/', $version, $result );
1864+
preg_match('/(\d+)\./', $version, $result );
1865+
return $result[1];
18651866

1866-
return $result[0];
18671867
}
18681868

18691869
}

0 commit comments

Comments
 (0)