From 05a708fb06137758cf7a15a623b4813af2fc005f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 31 Jan 2007 15:49:26 +0000 Subject: - Patch #112715 by chx, webchick, asimmonds, et al: fixing E_ALL notices. Thanks. --- modules/profile/profile.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/profile/profile.module') diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 51f3512ab..4883e383c 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -596,6 +596,7 @@ function profile_view_profile($user) { $result = db_query('SELECT * FROM {profile_fields} WHERE visibility != %d AND visibility != %d ORDER BY category, weight', PROFILE_PRIVATE, PROFILE_HIDDEN); } + $fields = array(); while ($field = db_fetch_object($result)) { if ($value = profile_view_field($user, $field)) { $title = ($field->type != 'checkbox') ? check_plain($field->title) : NULL; @@ -626,6 +627,7 @@ function _profile_form_explanation($field) { function profile_form_profile($edit, $user, $category, $register = FALSE) { $result = _profile_get_fields($category, $register); $w = 0; + $fields = array(); while ($field = db_fetch_object($result)) { $category = $field->category; if (!isset($fields[$category])) { @@ -744,6 +746,7 @@ function profile_validate_profile($edit, $category) { function profile_categories() { $result = db_query("SELECT DISTINCT(category) FROM {profile_fields}"); + $data = array(); while ($category = db_fetch_object($result)) { $data[] = array('name' => $category->category, 'title' => $category->category, 'weight' => 3); } -- cgit v1.2.3