Hi folks !

I've got a strange issue with mgd_auth_midgard(), if the login fails
then functions like mgd_get_object_by_guid()

For example:

  1: <?php
  2: 
  3: function show() {
  4:   $toto =
mgd_get_object_by_guid('d03cd727cffebee3a19a784b76ffe92d');
  5:   print "mgd_errstr = ".mgd_errstr()."<br>";
  6:   print "id = ".$toto->id."<br>";
  7: }
  8: 
  9: print "step 1<br>";
 10: show();
 11: print "step 2<br>";
 12: 
 13: if (mgd_auth_midgard('nonexistentuser', 'dfsfsdfdsffds', 0)) {
 14:   print "Login ok<br>";
 15: } else {
 16:   print "Login failed<br>";
 17: }
 18: 
 19: show();
 20: 
 21: ?>

Gives me the following result:

step 1
mgd_errstr = MGD_ERR_OK
id = 3
step 2
Login failed
mgd_errstr = Object does not exist
id = 

Any idea ? May i post a bug report ?

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to