Permalink
Browse files

fix for cause detection string in amd

  • Loading branch information...
1 parent ede8ba9 commit 795ccfad4534d3b733f6ee0de909b2088426ec74 @marcelog committed Sep 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mg/PAGI/Client/Result/AmdResult.php
@@ -122,7 +122,7 @@ private function isStatus($string)
*/
private function isCause($string)
{
- return strcasecmp($this->_cause, $string) === 0;
+ return strncasecmp($this->_cause, $string, strlen($string)) === 0;
}
/**

0 comments on commit 795ccfa

Please sign in to comment.