summaryrefslogtreecommitdiff
path: root/includes/ZhClient.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/ZhClient.php')
-rw-r--r--includes/ZhClient.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/ZhClient.php b/includes/ZhClient.php
index 0451ce81..9c9461d5 100644
--- a/includes/ZhClient.php
+++ b/includes/ZhClient.php
@@ -38,6 +38,7 @@ class ZhClient {
*/
function connect() {
wfSuppressWarnings();
+ $errno = $errstr = '';
$this->mFP = fsockopen($this->mHost, $this->mPort, $errno, $errstr, 30);
wfRestoreWarnings();
if(!$this->mFP) {
@@ -115,7 +116,6 @@ class ZhClient {
foreach($info as $variant) {
list($code, $len) = explode(' ', $variant);
$ret[strtolower($code)] = substr($data, $i, $len);
- $r = $ret[strtolower($code)];
$i+=$len;
}
return $ret;