Renamed MySQL alias that could cause conflicts

This commit is contained in:
Marcos García
2012-08-23 09:00:31 +02:00
parent 43e4f139d5
commit fcb4f5ce67

View File

@@ -211,7 +211,7 @@ if ($id > 0 || ! empty($ref))
$mode_search = 1;
}
$sql = "SELECT count(*) as count";
$sql = "SELECT count(*) as total";
$sql.= " FROM ".MAIN_DB_PREFIX."bank_account as ba";
$sql.= ", ".MAIN_DB_PREFIX."bank as b";
if ($mode_search)
@@ -229,7 +229,7 @@ if ($id > 0 || ! empty($ref))
if ($result)
{
$obj = $db->fetch_object($result);
$nbline = $obj->count;
$nbline = $obj->total;
$total_lines = $nbline;
$db->free($result);