Поправил типы
This commit is contained in:
parent
db7b5c7d25
commit
bfd53ecc09
3 changed files with 3 additions and 3 deletions
|
|
@ -121,7 +121,7 @@ class Tools_SQLStatementExtractor {
|
||||||
* @param string $string The string to check in (haystack).
|
* @param string $string The string to check in (haystack).
|
||||||
* @return boolean True if $string ends with $check, or they are equal, or $check is empty.
|
* @return boolean True if $string ends with $check, or they are equal, or $check is empty.
|
||||||
*/
|
*/
|
||||||
protected static function endsWith($check, $string) {
|
protected static function endsWith(/*.string.*/$check, $string) {
|
||||||
if ($check === "" || $check === $string) {
|
if ($check === "" || $check === $string) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ class Validator_Rule_IsFile extends Validator_Rule_Abstract
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tmp['size'] > $this->maxsize*1024) {
|
if (((int)$tmp['size']) > $this->maxsize*1024) {
|
||||||
$this->setErrorMsg('Неверный размер файла');
|
$this->setErrorMsg('Неверный размер файла');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue