2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Regis Houssin
2007-06-08 08:54:00 +00:00
parent 25c2e53dca
commit 9a4346e370

View File

@@ -1308,7 +1308,7 @@ function dol_loginfunction($notused,$pearstatus)
if ($socid > 0) $sql .= " AND dbt.fk_soc = ".$socid;
}
if ($db->query($sql))
if ($sql && $db->query($sql))
{
if ($db->num_rows() == 0)
{