PHP8: new str_* function

This commit is contained in:
Sunch 2024-08-17 20:11:55 +08:00
parent 69385e16f2
commit 1275a4558c
7 changed files with 15 additions and 15 deletions

View file

@ -548,7 +548,7 @@ class PocketMinecraftServer{
$this->custom["times_" . $CID] = 0;
}
$ln = 15;
if($this->description == "" or substr($this->description, -1) != " "){
if($this->description == "" or !str_ends_with($this->description, " ")){
$this->description .= " ";
}
$txt = substr($this->description, $this->custom["times_" . $CID], $ln);