mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
Fixes for some E_NOTICE and type-hints added (#5358)
* Fixed http://github to https://github Signed-off-by: Roland Häder <roland@mxchange.org> * Fixes for #4965: - updated messages.po file Signed-off-by: Roland Häder <roland@mxchange.org> * Fixed E_NOTICE where isset()/empty() was absent. Signed-off-by: Roland Häder <roland@mxchange.org> * Fixed missing variable $sql_order causing E_NOTICE. Signed-off-by: Roland Häder <roland@mxchange.org> * Continued: - added array type-hint where known (some) Signed-off-by: Roland Häder <roland@mxchange.org> * Fixes: - in Profile::load() $user is now only one-dimensional - $a->get_hostname is no property, it is a method Signed-off-by: Roland Häder <roland@mxchange.org> * reverted changes that are unintended Signed-off-by: Roland Häder <roland@mxchange.org> * Continued: - removed leading \ (uncommon, okay) - removed entire if() block (CR by Hypolite) Signed-off-by: Roland Häder <roland@mxchange.org> * Removed if() block Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
30cef1a739
commit
6b5d90333f
5 changed files with 11 additions and 9 deletions
|
@ -429,9 +429,11 @@ function list_post_dates($uid, $wall) {
|
|||
$start_month = DateTimeFormat::utc($dstart, 'Y-m-d');
|
||||
$end_month = DateTimeFormat::utc($dend, 'Y-m-d');
|
||||
$str = day_translate(DateTimeFormat::utc($dnow, 'F'));
|
||||
|
||||
if (empty($ret[$dyear])) {
|
||||
$ret[$dyear] = [];
|
||||
}
|
||||
|
||||
$ret[$dyear][] = [$str, $end_month, $start_month];
|
||||
$dnow = DateTimeFormat::utc($dnow . ' -1 month', 'Y-m-d');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue