Author split is finished with this little refactoring. fix #13

This commit is contained in:
Sébastien Lucas 2012-09-30 14:39:53 +02:00
parent da7bb34a2c
commit 14199cf9b3
2 changed files with 11 additions and 21 deletions

View file

@ -431,7 +431,7 @@ abstract class Base
global $config;
$totalResult = -1;
if ($config['cops_max_item_per_page'] != -1)
if ($config['cops_max_item_per_page'] != -1 && $n != -1)
{
// First check total number of results
$result = self::getDb ()->prepare (str_format ($query, "count(*)"));