* Fixed PHP notice
git-svn-id: svn://netflint.net/xmpphp@70 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
parent
6cd2e281c7
commit
b13761eb26
@ -472,12 +472,12 @@ class XMPPHP_XMLStream {
|
||||
}
|
||||
if(array_key_exists($event_key, $this->until_payload)) {
|
||||
$payload = $this->until_payload[$event_key];
|
||||
unset($this->until_payload[$event_key]);
|
||||
unset($this->until_count[$event_key]);
|
||||
unset($this->until[$event_key]);
|
||||
} else {
|
||||
$payload = array();
|
||||
}
|
||||
unset($this->until_payload[$event_key]);
|
||||
unset($this->until_count[$event_key]);
|
||||
unset($this->until[$event_key]);
|
||||
return $payload;
|
||||
}
|
||||
|
||||
@ -647,6 +647,9 @@ class XMPPHP_XMLStream {
|
||||
if(is_array($until)) {
|
||||
if(in_array($name, $until)) {
|
||||
$this->until_payload[$key][] = array($name, $payload);
|
||||
if(!isset($this->until_count[$key])) {
|
||||
$this->until_count[$key] = 0;
|
||||
}
|
||||
$this->until_count[$key] += 1;
|
||||
#$this->until[$key] = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user