Economise une requete

This commit is contained in:
Alan Garcia 2012-08-26 10:22:54 +00:00
parent e51f1cd451
commit 169e544bd5
1 changed files with 2 additions and 9 deletions

View File

@ -71,16 +71,9 @@ class m_log {
}
function get_logs_directory(){
global $cuid,$db,$err;
global $cuid,$mem,$err;
$err->log("log","get_logs_directory");
$db->query("select login from membres where uid=$cuid ;");
if ($db->num_rows()==0) {
$err->raise("log",1);
return false;
}
$db->next_record();
$c=array("dir"=>ALTERNC_LOGS."/".$cuid."-".$db->f("login"));
$c=array("dir"=>ALTERNC_LOGS."/".$cuid."-".$mem->user["login"]);
return $c;
}