mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:10:11 +00:00
fix undeclared variables or wrong variable names (/src)
This commit is contained in:
parent
7e15a9f0f5
commit
342b9af734
8 changed files with 15 additions and 7 deletions
|
@ -90,12 +90,12 @@ class DateTimeFormat
|
|||
{
|
||||
// Defaults to UTC if nothing is set, but throws an exception if set to empty string.
|
||||
// Provide some sane defaults regardless.
|
||||
if ($from === '') {
|
||||
$from = 'UTC';
|
||||
if ($tz_from === '') {
|
||||
$tz_from = 'UTC';
|
||||
}
|
||||
|
||||
if ($to === '') {
|
||||
$to = 'UTC';
|
||||
if ($tz_to === '') {
|
||||
$tz_to = 'UTC';
|
||||
}
|
||||
|
||||
if (($s === '') || (!is_string($s))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue