explode with limit
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 29 Nov 2004 02:36:27 +0000 (02:36 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 29 Nov 2004 02:36:27 +0000 (02:36 +0000)
includes/ZhClient.php

index e07908d..7bedf82 100644 (file)
@@ -106,7 +106,7 @@ class ZhClient {
                $result = $this->query($q);
                if(!$result)
                        return false;
-               list($infoline, $data) = explode('|', $result);
+               list($infoline, $data) = explode('|', $result, 2);
                $info = explode(";", $infoline);
                $ret = array();
                $i=0;