From 25c5055ca58b436b4cfff8d8d4055d4b1847cc69 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Mon, 18 Jul 2011 09:38:16 -0300 Subject: [PATCH] Removed dependancy on PHP_LIB. --- formClass.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formClass.inc b/formClass.inc index da62a37a..8621eae5 100644 --- a/formClass.inc +++ b/formClass.inc @@ -502,7 +502,7 @@ class formClass { $name = $content_model->name; $potential_models["$identifier"] = "$name"; } - list($identifier, $name) = array_peek($potential_models); + $identifier = key($potential_models); $selected_model = isset($form_state['values']['models']) ? $form_state['values']['models'] : $identifier; return array( 'indicator' => array(