On Tue, 2003-10-28 at 23:04, Axel Gebauer wrote:after changing Midgard from version 1.4.2 to 1.5 the mgd_get_midgard () doesn't return the logged in user anymore. I didn't found an entry in the bugtracker, yet. Does anyone knows a workaround?
At 11:35 Uhr +0100 29.10.2003, Tarjei Huse wrote:
$midgard = mgd_get_midgard() $user $midgard->person (I think) do a print_r($midgard) for all info
Thank You for answering. The field mgd_get_midgard() returns is named user not person. And in fact it's empty (=0) in midgard 1.5 although an user is logged in. In previous version it worked, so it really seems to be a bug. I will try following workaround:
$midgard = mgd_get_midgard ();
$people = mgd_list_persons();
while ($people->fetch()) {
if ($people->username == $PHP_AUTH_USER) {
$midgard->user = $people->id;
}
}Greetings,
Axel
-- Axel Gebauer [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
