From 297c634b535287028c83b7d581668934de5d307d Mon Sep 17 00:00:00 2001 From: printempw Date: Thu, 4 Feb 2016 13:49:42 +0800 Subject: [PATCH] do not use is_null to compare string --- includes/user.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/user.class.php b/includes/user.class.php index 3f64127a..7f540e7c 100644 --- a/includes/user.class.php +++ b/includes/user.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: prpr - * @Last Modified time: 2016-02-04 10:18:01 + * @Last Modified time: 2016-02-04 13:48:48 */ class user @@ -68,9 +68,9 @@ class user } public function unRegister() { - if (!is_null($this->getTexture('skin'))) + if ($this->getTexture('skin') != "") utils::remove("./textures/".$this->getTexture('skin')); - if (!is_null($this->getTexture('skin'))) + if ($this->getTexture('skin') != "") utils::remove("./textures/".$this->getTexture('cape')); return $this->db->delete($this->uname); }