From 8d51e9b8a800f0d734a35887fe0fdb680a67fc72 Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Thu, 24 Jul 2008 10:06:58 +0000 Subject: [PATCH] Fehler bei in authuser --- lxo-import/import_lib.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lxo-import/import_lib.php b/lxo-import/import_lib.php index c60975afd..d8b2259c1 100644 --- a/lxo-import/import_lib.php +++ b/lxo-import/import_lib.php @@ -363,10 +363,14 @@ function authuser($dbhost,$dbport,$dbuser,$dbpasswd,$dbname,$cookie) { $db->query($sql2,"authuser_B"); $sql3="insert into session ";*/ } + $sql="select * from auth.user where id=".$rs[0]["id"]; + $rs1=$db->getAll($sql,"authuser_1"); + if (!$rs1) return false; + $auth=array(); + $auth["login"]=$rs1[0]["login"]; $sql="select * from auth.user_config where user_id=".$rs[0]["id"]; $rs1=$db->getAll($sql,"authuser_2"); - $auth=array(); - $keys=array("login","dbname","dbpasswd","dbhost","dbport","dbuser"); + $keys=array("dbname","dbpasswd","dbhost","dbport","dbuser"); foreach ($rs1 as $row) { if (in_array($row["cfg_key"],$keys)) { $auth[$row["cfg_key"]]=$row["cfg_value"]; -- 2.20.1