X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdatetime.php;h=e88c274ab967449649311a592171af1f7be4a9a8;hb=fc9dbc0899aed223378be677356cd74e722dfd14;hp=16b134e90b13d8525fdfd3535f3694bb451ade2e;hpb=75166cae27114c62aed2ed01c8ef9f24bc4f970b;p=friendica.git diff --git a/include/datetime.php b/include/datetime.php index 16b134e90b..e88c274ab9 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -552,7 +552,7 @@ 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)) { + if (dbm::is_result($r)) { foreach($r as $rr) { logger('update_contact_birthday: ' . $rr['bd']);