File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3613,7 +3613,7 @@ public static function get_document_preview(
3613
3613
</script> " ;
3614
3614
} else {
3615
3615
// For LPs
3616
- $ url = $ lpAjaxUrl .'?a=get_documents&lp_id= ' .$ lp_id .'& ' .api_get_cidreq ();
3616
+ $ url = $ lpAjaxUrl .'?a=get_documents&lp_id= ' .( int ) $ lp_id .'& ' .api_get_cidreq ();
3617
3617
}
3618
3618
3619
3619
if (!empty ($ overwrite_url )) {
@@ -7018,7 +7018,8 @@ private static function parseFile(
7018
7018
// Show the "image name" not the filename of the image.
7019
7019
if ($ lp_id ) {
7020
7020
// LP URL
7021
- $ url = api_get_path (WEB_CODE_PATH ).'lp/lp_controller.php? ' .api_get_cidreq ().'&action=add_item&type= ' .TOOL_DOCUMENT .'&file= ' .$ documentId .'&lp_id= ' .$ lp_id ;
7021
+ $ url = api_get_path (WEB_CODE_PATH ).
7022
+ 'lp/lp_controller.php? ' .api_get_cidreq ().'&action=add_item&type= ' .TOOL_DOCUMENT .'&file= ' .$ documentId .'&lp_id= ' .(int ) $ lp_id ;
7022
7023
} else {
7023
7024
// Direct document URL
7024
7025
$ url = $ web_code_path .'document/document.php?cidReq= ' .$ courseInfo ['code ' ].'&id_session= ' .$ session_id .'&id= ' .$ documentId ;
You can’t perform that action at this time.
0 commit comments