diff --git a/main/newscorm/lp_edit_item.php b/main/newscorm/lp_edit_item.php
index 65703431a0..74dc131702 100644
--- a/main/newscorm/lp_edit_item.php
+++ b/main/newscorm/lp_edit_item.php
@@ -207,7 +207,7 @@ echo '
';
$path_item = isset($_GET['path_item'])?$_GET['path_item']:0;
$path_item = Database::escape_string($path_item);
$tbl_doc = Database :: get_course_table(TABLE_DOCUMENT);
- $sql_doc = "SELECT path FROM " . $tbl_doc . " WHERE id = " . $path_item;
+ $sql_doc = "SELECT path FROM " . $tbl_doc . " WHERE id = '". $path_item."' ";
$res_doc=api_sql_query($sql_doc, __FILE__, __LINE__);
$path_file=Database::result($res_doc,0,0);
$path_parts = pathinfo($path_file);