Minor improvements (#1306)

* Minor improvements

* Update functions.php

* Updated

* Updated

* Update edit_user_profile.php

* Update index_data.php

* Update

* Update sitemap.php
This commit is contained in:
Roman Kelesidis 2024-01-02 21:18:54 +07:00 committed by GitHub
commit 36e52d5d3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 67 additions and 64 deletions

View file

@ -13,9 +13,11 @@ if (!defined('IN_AJAX')) {
global $bb_cfg, $lang, $userdata, $datastore;
$mode = (string)$this->request['mode'];
$html = '';
if (!$mode = (string)$this->request['mode']) {
$this->ajax_die('invalid mode (empty)');
}
$html = '';
switch ($mode) {
case 'birthday_week':
$stats = $datastore->get('stats');
@ -122,7 +124,7 @@ switch ($mode) {
break;
default:
$this->ajax_die('Invalid mode');
$this->ajax_die('Invalid mode: ' . $mode);
}
$this->response['html'] = $html;