Subversion Repositories SmartDukaan

Rev

Rev 13061 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13061 Rev 13084
Line 43... Line 43...
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');
47
		$authorized=$this->_ci->session->userdata('authorized');
-
 
48
		if(isset($authorized['Id']) && !empty($authorized['Id'])){
-
 
49
			$params['userId'] = $authorized['Id'];
-
 
50
		}
48
		if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) {
51
		if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) {
49
			$params['privateDealUser'] = 'true';
52
			$params['privateDealUser'] = 'true';
50
		}
53
		}
51
		if (is_null($key))
54
		if (is_null($key))
52
		{
55
		{