[svn r16200] Minor - Multiline in the lp author

skala
Julio Montoya 17 years ago
parent 7dc7fab256
commit 9c88f3f5b1
  1. 6
      main/newscorm/lp_controller.php

@ -575,9 +575,9 @@ switch($action)
else{
$_SESSION['refresh'] = 1;
$_SESSION['oLP']->set_name($_REQUEST['lp_name']);
$author= $_REQUEST['lp_author'];
//fixing the author name (no body or html tags)
$len = strpos($author,'</p>')-strpos($author,'<p>');
$author= $_REQUEST['lp_author'];
//fixing the author name (no body or html tags)
$len = strripos($author,'</p>')-strpos($author,'<p>');
$author_fixed=substr($author,strpos($author,'<p>'), $len+4);
$_SESSION['oLP']->set_author($author_fixed);

Loading…
Cancel
Save