Datastore improvements (#1538)

* Datastore improvements

* Updated

* Update functions.php

* Updated

* Updated

* Updated

* Update index.php

* Update index.php

* Update index.php

* Update index.php

* Update viewtopic.php

* Update functions.php

* Updated

* Updated

* Revert "Updated"

This reverts commit 0ff7d4ac60.

* Revert "Updated"

This reverts commit 8d637dff6c.

* Update index_data.php

* Update index_data.php

* Update index_data.php

* Updated

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-07-13 14:26:34 +07:00 committed by GitHub
commit c7f2223f7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 67 additions and 50 deletions

View file

@ -13,7 +13,7 @@ if (!defined('IN_AJAX')) {
global $datastore, $lang;
if (!$ranks = $datastore->get('ranks')) {
if (!$ranks = $datastore->get('ranks') and !$datastore->has('ranks')) {
$datastore->update('ranks');
$ranks = $datastore->get('ranks');
}