From d5999c656f42f8f8d577afec1c5dcae29be33c6e Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 30 Nov 2006 01:41:56 +0100 Subject: [PATCH] [svn r10261] Added default values to interactions functions --- 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 38f22d7af8..a8b75c3298 100644 --- a/main/newscorm/lp_stats.php +++ b/main/newscorm/lp_stats.php @@ -14,7 +14,7 @@ * @param integer Item View ID * @return integer Number of interactions */ -function get_interactions_count_from_db($lp_iv_id){ +function get_interactions_count_from_db($lp_iv_id=0){ $table = Database::get_course_table('lp_iv_interaction'); $sql = "SELECT count(*) FROM $table WHERE lp_iv_id = $lp_iv_id"; $res = api_sql_query($sql,__FILE__,__LINE__); @@ -27,7 +27,7 @@ function get_interactions_count_from_db($lp_iv_id){ * @param integer Learnpath Item View ID * @return array */ -function get_iv_interactions_array($lp_iv_id){ +function get_iv_interactions_array($lp_iv_id=0){ $list = array(); $table = Database::get_course_table('lp_iv_interaction'); $sql = "SELECT * FROM $table WHERE lp_iv_id = $lp_iv_id ORDER BY order_id ASC";