From d34c8028e343df97b6c4631ec65a2e99f4d7d8a1 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 7 May 2007 22:28:04 +0200 Subject: [PATCH] [svn r12324] Added check on number of results before display of empty row --- main/newscorm/lp_stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/newscorm/lp_stats.php b/main/newscorm/lp_stats.php index 003d15efee..bc0f3e6162 100644 --- a/main/newscorm/lp_stats.php +++ b/main/newscorm/lp_stats.php @@ -206,7 +206,7 @@ foreach ($list as $my_item_id) { } } } while ($row = Database :: fetch_array($result)); - } else { + } elseif($num>0) { $row = Database :: fetch_array($result); //check if there are interactions below