X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdatetime.php;h=a17c405dc365ea391d3ada2fd0c3f16d82f3e855;hb=d242e72c656e6185e634ba6978783c2596f0918a;hp=16b134e90b13d8525fdfd3535f3694bb451ade2e;hpb=a6776f0cc1a57016b8d32e06ba86ba98618783ab;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']);