mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed the rest of the broken stuff after the dependency upgrade party
This commit is contained in:
@@ -122,3 +122,16 @@ function IsIsoDateTime($dateTimeString)
|
||||
$d = DateTime::createFromFormat('Y-m-d H:i:s', $dateTimeString);
|
||||
return $d && $d->format('Y-m-d H:i:s') === $dateTimeString;
|
||||
}
|
||||
|
||||
function BoolToString(bool $bool)
|
||||
{
|
||||
return $bool ? 'true' : 'false';
|
||||
}
|
||||
|
||||
function Setting(string $name, string $value)
|
||||
{
|
||||
if (!defined($name))
|
||||
{
|
||||
define($name, $value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user