Changeset 322


Ignore:
Timestamp:
Apr 11, 2008 9:14:55 PM (16 years ago)
Author:
david
Message:

Improving A.net stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/AuthorizeNet.inc.php

    r316 r322  
    122122        // Set default parameters.
    123123        $this->_params = $this->_default_params;
     124        $this->setParam($params);
    124125       
    125126        $this->setParam(array('md5_hash_salt' => $app->getParam('signing_key')));
     
    222223    function getResult($key=null)
    223224    {
    224         if (isset($key) && isset($this->_results[$key])) {
    225             return $this->_results[$key];
     225        if (isset($key)) {
     226            if (isset($this->_results[$key])) {
     227                return $this->_results[$key];
     228            } else {
     229                return null;
     230            }
    226231        } else {
    227232            return $this->_results;
Note: See TracChangeset for help on using the changeset viewer.