]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Fixes for some E_NOTICE and type-hints added (#5358)
[friendica.git] / include / items.php
index ab50e159a1898626ca202bddd1cef64b3f4caa63..e06df925e34ee9530c0c2f51d8c614175b00433b 100644 (file)
@@ -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');
        }