mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
Renamed MySQL alias that could cause conflicts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user