$result = $this->gline();
$this->posting = ($result{0}=="200");
}
- if ($result{0}=="2" && $url['user'] && $url['user']!='anonymous') {
+ if ($result{0}=="2" && isset($url['user']) && $url['user'] != 'anonymous') {
return $this->authinfo($url['user'], $url['pass']);
}
return ($result{0}=="2");
$array = array();
while (($result = $this->gline()) != '.') {
- preg_match("/([^ \t]+) (.*)$/", $result, $regs);
- $array[$regs[1]] = $regs[2];
+ if (preg_match("/([^ \t]+) (.*)$/", $result, $regs)) {
+ $array[$regs[1]] = $regs[2];
+ }
}
return $array;
}
}
}
+// vim:set et sw=4 sts=4 ts=4
?>