From 17161d7cd0621be5ed5644a3e83352d7d6667d77 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 15 Jan 2013 15:49:03 +0100 Subject: [PATCH] Fixed #62 --- src/classes/PocketMinecraftServer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/classes/PocketMinecraftServer.php b/src/classes/PocketMinecraftServer.php index d5650fd7..4cc36c37 100644 --- a/src/classes/PocketMinecraftServer.php +++ b/src/classes/PocketMinecraftServer.php @@ -420,6 +420,9 @@ class PocketMinecraftServer{ $this->custom["times_".$CID] = 0; } $ln = 15; + if(strlen($this->description) === 0){ + $this->description = ""; + } $txt = substr($this->description, $this->custom["times_".$CID], $ln); $txt .= substr($this->description, 0, $ln - strlen($txt)); $this->send(0x1c, array(