<?php
/***************************************************************************
- * Copyright (C) 2003-2008 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
}
$result = $this->find_and_decode_xml($answer);
if ($this->bt) {
- if (isset($result['faultCode'])) {
+ if (is_array($result) && isset($result['faultCode'])) {
$this->bt->update(0, $result['faultString']);
} else {
$this->bt->update(count($result));