Skip to content

Commit

Permalink
Module/Armory: Add limit and offset for search character
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightprince committed May 7, 2024
1 parent 2bfc7b1 commit a7213b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/modules/armory/models/Armory_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function get_characters($searchString, $limit, $offset, $realmId = 1)

$builder = $this->c_connection->table(table("characters", $realmId))->select(columns("characters", ["guid", "name", "race", "gender", "class", "level"], $realmId));
$builder->like(column("characters", "name", false, $realmId), ucfirst($searchString));
$builder->limit($limit, $offset);
$result = $builder->get();

if ($result->getNumRows() > 0) {
Expand Down

0 comments on commit a7213b9

Please sign in to comment.