mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-28 22:27:15 +00:00
refactor: this would use a database index
This commit is contained in:
@@ -4249,7 +4249,7 @@ $wallimg = "<img src=\"".GP_LOCATE."img/g/g3".$targettribe."Icon.gif\" height=\"
|
|||||||
|
|
||||||
private function checkInvitedPlayes() {
|
private function checkInvitedPlayes() {
|
||||||
global $database;
|
global $database;
|
||||||
$q = "SELECT * FROM ".TB_PREFIX."users WHERE invited != 0";
|
$q = "SELECT * FROM ".TB_PREFIX."users WHERE invited > 0";
|
||||||
$array = $database->query_return($q);
|
$array = $database->query_return($q);
|
||||||
foreach($array as $user) {
|
foreach($array as $user) {
|
||||||
$numusers = mysqli_query($GLOBALS['link'],"SELECT * FROM ".TB_PREFIX."users WHERE id = ".(int) $user['invited']);
|
$numusers = mysqli_query($GLOBALS['link'],"SELECT * FROM ".TB_PREFIX."users WHERE id = ".(int) $user['invited']);
|
||||||
|
|||||||
Reference in New Issue
Block a user