X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdatetime.php;h=a17c405dc365ea391d3ada2fd0c3f16d82f3e855;hb=84b733e1bf25bdd1074483f19113add7800a6c38;hp=16b134e90b13d8525fdfd3535f3694bb451ade2e;hpb=4eeb5a0a17fd394d27faf0315196d6916a22d31b;p=friendica.git diff --git a/include/datetime.php b/include/datetime.php index 16b134e90b..a17c405dc3 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -552,8 +552,8 @@ function update_contact_birthdays() { // In-network birthdays are handled within local_delivery $r = q("SELECT * FROM contact WHERE `bd` != '' AND `bd` != '0000-00-00' AND SUBSTRING(`bd`,1,4) != `bdyear` "); - if(count($r)) { - foreach($r as $rr) { + if (dbm::is_result($r)) { + foreach ($r as $rr) { logger('update_contact_birthday: ' . $rr['bd']);