From 4869b9560156c08c306614b4fe0d518b01ced7b5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 12 Feb 2014 00:01:22 +0100 Subject: [PATCH] Fix: Default size too long making screen hang. --- htdocs/comm/index.php | 2 +- htdocs/comm/propal/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index 64ca064063a..989f8fbb245 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -475,7 +475,7 @@ if (! empty($conf->propal->enabled) && $user->rights->propal->lire) print ''; print ''; - $nbofloop=min($num, (empty($conf->global->MAIN_MAXLIST_OVERLOAD)?1000:$conf->global->MAIN_MAXLIST_OVERLOAD)); + $nbofloop=min($num, (empty($conf->global->MAIN_MAXLIST_OVERLOAD)?500:$conf->global->MAIN_MAXLIST_OVERLOAD)); while ($i < $nbofloop) { $obj = $db->fetch_object($result); diff --git a/htdocs/comm/propal/index.php b/htdocs/comm/propal/index.php index cdd7e6840c9..409d76f2505 100644 --- a/htdocs/comm/propal/index.php +++ b/htdocs/comm/propal/index.php @@ -315,7 +315,7 @@ if (! empty($conf->propal->enabled) && $user->rights->propale->lire) print '
'.$langs->trans("ProposalsOpened").' ('.$num.')
'; print ''; - $nbofloop=min($num, (empty($conf->global->MAIN_MAXLIST_OVERLOAD)?1000:$conf->global->MAIN_MAXLIST_OVERLOAD)); + $nbofloop=min($num, (empty($conf->global->MAIN_MAXLIST_OVERLOAD)?500:$conf->global->MAIN_MAXLIST_OVERLOAD)); while ($i < $nbofloop) { $obj = $db->fetch_object($result);
'.$langs->trans("ProposalsOpened").' ('.$num.')