diff --git a/modules/payment/classes/Model/Payment.php b/modules/payment/classes/Model/Payment.php index c26b150a..0f7a6e62 100644 --- a/modules/payment/classes/Model/Payment.php +++ b/modules/payment/classes/Model/Payment.php @@ -148,7 +148,7 @@ class Model_Payment extends ORM_OSB { $items = $this->subitems(); // If a user modified this payment, we'll update the source to their ID. - if ($ao = Auth::instance()->get_user()) + if (PHP_SAPI !== 'cli' AND $ao = Auth::instance()->get_user()) $this->source_id = $ao->id; $this->ip = Request::$client_ip;