mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
MySQL/Compat
* fixed several deprecation notices and warnings from MySQL8, most notably: - SQL_CALC_FOUND_ROWS: stopped using DBSimple::selectPage and query 'SELECT COUNT(*) ...' separately where needed - ON DUPLICATE KEY UPDATE ... VALUES(): use row alias for new values instead of VALUES function - boolean shorthands to long form (&& -> AND, etc)
This commit is contained in:
@@ -55,7 +55,7 @@ class ObjectsPage extends GenericPage
|
||||
$conditions[] = $_;
|
||||
|
||||
$tabData = ['data' => []];
|
||||
$objects = new GameObjectList($conditions, ['extraOpts' => $this->filterObj->extraOpts]);
|
||||
$objects = new GameObjectList($conditions, ['extraOpts' => $this->filterObj->extraOpts, 'calcTotal' => true]);
|
||||
if (!$objects->error)
|
||||
{
|
||||
$tabData['data'] = array_values($objects->getListviewData());
|
||||
|
||||
Reference in New Issue
Block a user