The error code below occurs intermittently.
I Added source to prevent errors.
=================================
[30-Dec-2022 12:00:02] USER ERROR: "Unsupported operand types"
File: ShowGalaxyPage.class.php | Line: 91
URL: /game.php?page=galaxy | Version: 2.0.git
Stack trace:
#0 /game.php(57): ShowGalaxyPage->show()
#1 {main}
=================================
1. Open file
includes/pages/game/ShowGalaxyPage.class.php
fine code
add before
Display All
END....
I Added source to prevent errors.
=================================
[30-Dec-2022 12:00:02] USER ERROR: "Unsupported operand types"
File: ShowGalaxyPage.class.php | Line: 91
URL: /game.php?page=galaxy | Version: 2.0.git
Stack trace:
#0 /game.php(57): ShowGalaxyPage->show()
#1 {main}
=================================
1. Open file
includes/pages/game/ShowGalaxyPage.class.php
fine code
add before
PHP Source Code
- ## add code
- $sql = "SELECT total_points FROM %%STATPOINTS%% WHERE stat_type = '1' AND id_owner = :userId;";
- $ckusers = Database::get()->selectSingle($sql, array(
- ':userId' => $USER['id']
- ));
- if(empty($ckusers)){
- $this->printMessage("Point error. Moving will fix it.", array(array(
- 'label' => $LNG['sys_back'],
- 'url' => 'game.php?page=galaxy'
- )));
- }
- ## END
END....
--------------------------------------------------------------------------------------