[turba] issue with basi login

steve smailling at free.fr
Fri May 23 03:30:52 PDT 2003


I got the following error:
Notice: Undefined offset: 1 in C:\devl\horde\turba\config\sources.php on 
line 255

My $uid="horde"
so after:
preg_match('/(^.*)@/', $uid, $uid);
I got nothing and an error on $uid = $uid[1];

I think a better code could be:
$uid = Auth::getAuth();
preg_match('/(^.*)@/', $uid, $uid2);
if (isset($uid2[1]))
	$uid = $uid2[1];
else
	$uid=$uid;

What do you think? 



More information about the turba mailing list