Subversion Repositories SmartDukaan

Rev

Rev 12999 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12999 Rev 13061
Line 42... Line 42...
42
		return function_exists('curl_multi_init');
42
		return function_exists('curl_multi_init');
43
	}
43
	}
44
	// method to add curl requests to the multi request queue
44
	// method to add curl requests to the multi request queue
45
	function add_call($key=null, $method, $url, $params = array(), $options = array())
45
	function add_call($key=null, $method, $url, $params = array(), $options = array())
46
	{
46
	{
-
 
47
		$authorized=$this->_ci->session->userdata('authorized');
-
 
48
		if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) {
-
 
49
			$params['privateDealUser'] = 'true';
-
 
50
		}
47
		if (is_null($key))
51
		if (is_null($key))
48
		{
52
		{
49
			$key = count($this->calls);
53
			$key = count($this->calls);
50
		}
54
		}
51
		
55