Поправил типы

This commit is contained in:
CORP\phedor 2018-02-13 12:15:00 +03:00
parent db7b5c7d25
commit bfd53ecc09
3 changed files with 3 additions and 3 deletions

View file

@ -122,7 +122,7 @@ class Database_Manager
if (isset($data['references'])) { if (isset($data['references'])) {
$references = " REFERENCES ".$data['references']; $references = " REFERENCES ".$data['references'];
} }
if (isset($data["not_null"])&&$data["not_null"]) if (isset($data["not_null"]) && $data["not_null"])
$constraint .=" NOT NULL"; $constraint .=" NOT NULL";
$type = $data['type']; $type = $data['type'];
if (!$pg) { if (!$pg) {

View file

@ -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 {

View file

@ -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;
} }