Fixed CLI updates to payments and no auth instance
This commit is contained in:
parent
75bcbf0856
commit
f1fae0c28c
@ -148,7 +148,7 @@ class Model_Payment extends ORM_OSB {
|
|||||||
$items = $this->subitems();
|
$items = $this->subitems();
|
||||||
|
|
||||||
// If a user modified this payment, we'll update the source to their ID.
|
// 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->source_id = $ao->id;
|
||||||
|
|
||||||
$this->ip = Request::$client_ip;
|
$this->ip = Request::$client_ip;
|
||||||
|
Reference in New Issue
Block a user