From 5d9cc7336c2c74e22deaa1e0aad0411723db396f Mon Sep 17 00:00:00 2001 From: Cristian Fasanando Date: Fri, 13 Mar 2009 23:04:15 +0100 Subject: [PATCH] [svn r19043] Minor - Fixed show attempt about an exercise into learning path details - (partial FS#3805) --- main/newscorm/lp_stats.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/newscorm/lp_stats.php b/main/newscorm/lp_stats.php index 693b8b978f..604b1bcaea 100644 --- a/main/newscorm/lp_stats.php +++ b/main/newscorm/lp_stats.php @@ -351,8 +351,8 @@ foreach ($list as $my_item_id) { $res_attempts = api_sql_query($sql_attempts,__FILE__,__LINE__); $num_attempts = Database :: num_rows($res_attempts); - - if ($row['item_type'] != 'dokeos_chapter') { + + if ($row['item_type'] === 'quiz') { if ($num_attempts > 0) { $n=1; while ($row_attempts = Database :: fetch_array($res_attempts)) {