From a002a07957fe9d65ba856662aa95a5ab4b2697ae Mon Sep 17 00:00:00 2001 From: pk910 Date: Sun, 30 Jun 2013 00:57:25 +0200 Subject: [PATCH] fixed coding fail --- zncadmin/ZNCServer.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zncadmin/ZNCServer.class.php b/zncadmin/ZNCServer.class.php index 8af0194..92e9c3f 100644 --- a/zncadmin/ZNCServer.class.php +++ b/zncadmin/ZNCServer.class.php @@ -45,7 +45,7 @@ class ZNCServer { public function ZNCServer($host, $port, $version = null) { $this->host = $host; $this->port = $port; - if(is_empty(self::$zncserver_classes)) + if(empty(self::$zncserver_classes)) self::load_classes(); if($version !== null) { $this->loadServerObject($version); @@ -82,7 +82,7 @@ class ZNCServer { $logged_in = !preg_match("/errorbar/i", $http); /* Version detection */ - if(preg_match("ZNC ([0-9]+\.[0-9]+)", $http, $version_match)) + if(preg_match("#ZNC ([0-9]+\.[0-9]+)#", $http, $version_match)) $this->loadServerObject($version_match[1], $connector); return $logged_in; -- 2.20.1