mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Bug fixes
This commit is contained in:
parent
10c2e5e445
commit
f58d16270a
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -365,7 +365,7 @@ class View implements \Serializable
|
|||
{
|
||||
$viewArray = [];
|
||||
|
||||
if($this->template === '') {
|
||||
if($this->template !== '') {
|
||||
$viewArray[] = $this->render();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user