diff options
Diffstat (limited to 'php')
-rw-r--r-- | php/phpgats.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/php/phpgats.php b/php/phpgats.php index 506a141..10008aa 100644 --- a/php/phpgats.php +++ b/php/phpgats.php | |||
@@ -518,8 +518,7 @@ function phpgats_parseGats( $str_data ) | |||
518 | $size = $size["size"]; | 518 | $size = $size["size"]; |
519 | if( $data_size < $size ) | 519 | if( $data_size < $size ) |
520 | { | 520 | { |
521 | throw new Exception( "invalid size (needed: " . $size . | 521 | throw new Exception( "Not enough data" ); |
522 | ", was: " . $data_size . ")\n" ); | ||
523 | return false; | 522 | return false; |
524 | } | 523 | } |
525 | $offset+=5; | 524 | $offset+=5; |