Проверка правила
This commit is contained in:
parent
b82d93905a
commit
4507f7f9d5
2 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ class Connection_HttpRequest
|
|||
$port = ($this->proxy_port) ? $this->proxy_port : $this->port;
|
||||
$errno = 0;
|
||||
$errstr = '';
|
||||
$socket = fsockopen($host, $port, $errno, $errstr, 30);
|
||||
$socket = @fsockopen($host, $port, $errno, $errstr, 30);
|
||||
if (is_resource($socket)) {
|
||||
$header = $this->getHeader();
|
||||
fwrite($socket, $header);
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ class Validator_Validator
|
|||
$ruleObj->$p_name = $p_value;
|
||||
}
|
||||
$this->addRule($ruleObj);
|
||||
} else {
|
||||
} else if (!empty($rule)) {
|
||||
throw new Exception('Unknown validation rule "' . $rule . "'");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue