mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 08:06:38 +02:00
Handle empty values in e_related.
This commit is contained in:
@@ -2237,6 +2237,12 @@ class e_form
|
|||||||
*/
|
*/
|
||||||
function renderRelated($parm,$tags, $curVal) //XXX TODO Cache!
|
function renderRelated($parm,$tags, $curVal) //XXX TODO Cache!
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(empty($tags))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(!varset($parm['limit']))
|
if(!varset($parm['limit']))
|
||||||
{
|
{
|
||||||
$parm = array('limit' => 5);
|
$parm = array('limit' => 5);
|
||||||
|
Reference in New Issue
Block a user