diff options
author | David <david@xagasoft.com> | 2011-03-11 18:49:08 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2011-03-11 18:49:08 +0000 |
commit | 0b31b494fd157296e5b59bd1fb20c9e627fec3c3 (patch) | |
tree | 8547e85e26caf95fb7660afeb6056f4d6a93a5d4 /php | |
parent | 86570119dd413f313ebdfb678e92a63351c42c4d (diff) | |
download | libgats-0b31b494fd157296e5b59bd1fb20c9e627fec3c3.tar.gz libgats-0b31b494fd157296e5b59bd1fb20c9e627fec3c3.tar.bz2 libgats-0b31b494fd157296e5b59bd1fb20c9e627fec3c3.tar.xz libgats-0b31b494fd157296e5b59bd1fb20c9e627fec3c3.zip |
david - woops, my exceptions not being consistant caused problems in fishtrax...
Diffstat (limited to '')
-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; |