From fcb4f5ce673ac8fa50ad564e3701d95e39b60dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Thu, 23 Aug 2012 09:00:31 +0200 Subject: [PATCH] Renamed MySQL alias that could cause conflicts --- htdocs/compta/bank/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index fe85bad9818..2a4790acbd5 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -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);