From 404db856cdfc76142a97d0d4706b7a4f6ef13f25 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Thu, 28 Feb 2013 01:52:46 +0100 Subject: [PATCH] Fix for strict warning in ingest.form.inc. Strict warning: Only variables should be passed by reference in islandora_ingest_form_get_current_step_id() (line 145 of /var/www/drupal7/sites/all/modules/islandora/includes/ingest.form.inc). --- includes/ingest.form.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/ingest.form.inc b/includes/ingest.form.inc index c285c5a1..55b1f1aa 100644 --- a/includes/ingest.form.inc +++ b/includes/ingest.form.inc @@ -142,7 +142,8 @@ function islandora_ingest_form_get_step(array &$form_state, $step_id = NULL) { function islandora_ingest_form_get_current_step_id(array &$form_state) { if (empty($form_state['islandora']['step_id'])) { $steps = islandora_ingest_form_get_steps($form_state); - return array_shift(array_keys($steps)); + $keys = array_keys($steps); + return array_shift($keys); } return $form_state['islandora']['step_id']; }