I am a drupal newbie. Can anyone tell me what is the meaning of such warning.
Uyarı: profile_load_profile Parametre 1 () hattı 462 / data/multiserv/users/395147/projects/730411/www/includes/module.inc verilen bir referans, bir değer olması bekleniyor.
Sorusu üzerine çizgi içerir:
**
* Invoke a hook in a particular module.
*
* @param $module
* The name of the module (without the .module extension).
* @param $hook
* The name of the hook to invoke.
* @param ...
* Arguments to pass to the hook implementation.
* @return
* The return value of the hook implementation.
*/
function module_invoke() {
$args = func_get_args();
$module = $args[0];
$hook = $args[1];
unset($args[0], $args[1]);
$function = $module .'_'. $hook;
if (module_hook($module, $hook)) { // this is line number 462
return call_user_func_array($function, $args);
}
}
ve dosyadaki .. / modules / profile / işlevini profile.module:
function profile_load_profile(&$user) {
$result = db_query('SELECT f.name, f.type, v.value FROM {profile_fields} f INNER JOIN {profile_values} v ON f.fid = v.fid WHERE uid = %d', $user->uid);
while ($field = db_fetch_object($result)) {
if (empty($user->{$field->name})) {
$user->{$field->name} = _profile_field_serialize($field->type) ? unserialize($field->value) : $field->value;
}
}
}