Skip to content

Commit

Permalink
(Fix) missing second argument on property_exists in Result and Session
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kalsey committed Aug 16, 2010
1 parent ac0ca5e commit 8c23256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TropoClasses.php
Expand Up @@ -1015,7 +1015,7 @@ public function __construct($json=NULL) {
}
}
$result = json_decode($json);
if (!is_object($result) || !property_exists($result)) {
if (!is_object($result) || !property_exists($result, "result")) {
throw new Exception('Not a result object.');
}
$this->_sessionId = $result->result->sessionId;
Expand Down Expand Up @@ -1173,7 +1173,7 @@ public function __construct($json=NULL) {
}
}
$session = json_decode($json);
if (!is_object($session) || !property_exists($session)) {
if (!is_object($session) || !property_exists($session, "session")) {
throw new Exception('Not a session object.', 2);
}
$this->_id = $session->session->id;
Expand Down

0 comments on commit 8c23256

Please sign in to comment.