Bug fixes

This commit is contained in:
Dennis Eichhorn 2016-08-07 00:24:23 +02:00
parent 10c2e5e445
commit f58d16270a
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ final class Validator extends ValidatorAbstract
*/
public static function contains(string $var, $substr)
{
return is_string($substr) ? strpos($var, $substr) : StringUtils::contains($var, $substr);
return is_string($substr) ? strpos($var, $substr) !== false : StringUtils::contains($var, $substr);
}
/**

View File

@ -365,7 +365,7 @@ class View implements \Serializable
{
$viewArray = [];
if($this->template === '') {
if($this->template !== '') {
$viewArray[] = $this->render();
}