We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117fab4 commit c79cbe0Copy full SHA for c79cbe0
ntwIndia/class-ntw-india.php
@@ -160,7 +160,7 @@ public function num_to_word( $number ) {
160
$dot = explode( '.', $number );
161
// If there is some integer after the dot and not just zero
162
// then we consider adding XXX/1000 to it
163
- if ( $dot[1] > 0 ) {
+ if ( isset( $dot[1] ) && $dot[1] > 0 ) {
164
// We dont need the and here
165
$this->first_call = false;
166
return $this->convert_number( $dot[0] ) . ' ' . $this->and . ' ' . intval( $dot[1] ) . '/1' . str_repeat( '0', strlen( $dot[1] ) );
0 commit comments