Issue #2481373: Fixed error when assigning new asset location.
This commit is contained in:
parent
e0d06f2038
commit
99f62a6d8c
|
@ -564,7 +564,7 @@ function farm_log_asset_move_action(array $assets, $context = array()) {
|
||||||
/**
|
/**
|
||||||
* Move farm asset(s) to an area. Creates a movement log.
|
* Move farm asset(s) to an area. Creates a movement log.
|
||||||
*
|
*
|
||||||
* @param array $assets
|
* @param array|FarmAsset $assets
|
||||||
* Array of assets to include in the move.
|
* Array of assets to include in the move.
|
||||||
* @param int $area_id
|
* @param int $area_id
|
||||||
* The id of the area to move to.
|
* The id of the area to move to.
|
||||||
|
@ -573,7 +573,7 @@ function farm_log_asset_move_action(array $assets, $context = array()) {
|
||||||
* @param bool $done
|
* @param bool $done
|
||||||
* Whether or not to mark the movement done. Default to FALSE.
|
* Whether or not to mark the movement done. Default to FALSE.
|
||||||
*/
|
*/
|
||||||
function farm_log_move_assets(array $assets, $area_id, $timestamp, $done = FALSE) {
|
function farm_log_move_assets($assets, $area_id, $timestamp, $done = FALSE) {
|
||||||
|
|
||||||
// If $assets isn't an array, wrap it.
|
// If $assets isn't an array, wrap it.
|
||||||
if (!is_array($assets)) {
|
if (!is_array($assets)) {
|
||||||
|
|
Loading…
Reference in New Issue