mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 14:08:40 +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)
|
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 = [];
|
$viewArray = [];
|
||||||
|
|
||||||
if($this->template === '') {
|
if($this->template !== '') {
|
||||||
$viewArray[] = $this->render();
|
$viewArray[] = $this->render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user