$result = $request->getResponseText();
if ( is_string($result) )
{
$result = json_decode($result);
if ( is_object($result) )
{
if ($result->status == 'ok') $this->_result++;
[COLOR=#ff0000]if ($this->_result > 11) exit();[/COLOR]
}
}
Code:$result = $request->getResponseText(); if ( is_string($result) ) { $result = json_decode($result); if ( is_object($result) ) { if ($result->status == 'ok') $this->_result++; [COLOR=#ff0000]if ($this->_result > 11) exit();[/COLOR] } }
Maybe the code in red would do the trick.