Commit ad397fc1 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#198231 by Alex UA and JirkaRybka: profile module had a parse error in PHP 4...

#198231 by Alex UA and JirkaRybka: profile module had a parse error in PHP 4 and there was a weighting error with form elements
parent a33b4338
......@@ -12,7 +12,7 @@
* @ingroup forms
* @see profile_admin_overview_submit().
*/
function profile_admin_overview(&$form_state = NULL) {
function profile_admin_overview() {
$result = db_query('SELECT title, name, type, category, fid, weight FROM {profile_fields} ORDER BY category, weight');
$form = array();
......
......@@ -347,7 +347,7 @@ function profile_form_profile($edit, $user, $category, $register = FALSE) {
while ($field = db_fetch_object($result)) {
$category = $field->category;
if (!isset($fields[$category])) {
$fields[$category] = array('#type' => 'fieldset', '#title' => check_plain($category), '#weight' => $w++);
$fields[$category] = array('#type' => 'fieldset', '#title' => check_plain($category), '#weight' => $weight++);
}
switch ($field->type) {
case 'textfield':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment