Author split is finished with this little refactoring. fix #13
This commit is contained in:
parent
da7bb34a2c
commit
14199cf9b3
2 changed files with 11 additions and 21 deletions
2
base.php
2
base.php
|
@ -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(*)"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue