therouv/Magento-DebitPayment — pull request #6 by aaxl (2012-12-14 16:35:12+00:00)
Title: Bugfix Guest Order Placement via Soap Api

Api Use Case - Community Edition 1.6.2 - Soap V1 interface:

* Mage::app()->getStore()->isAdmin() returns true
* $customer is used from the $order object

In the case of an 'guest' order, the validation of the $customer failed,
because it contains no data. To make it work properly, added the getId check also.
Ohterwise return null.