From d77c53492a7954f7daa7303728eea8698d338f24 Mon Sep 17 00:00:00 2001 From: Steve Osguthorpe Date: Mon, 18 Mar 2013 17:17:44 +0000 Subject: [PATCH] Created $keys variable to be passed by reference to stop PHP warning being shown. --- 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 9434e9e4..5742f3be 100644 --- a/includes/ingest.form.inc +++ b/includes/ingest.form.inc @@ -144,7 +144,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']; }