X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdatetime.php;h=d614818cecde6d125df2a289f665ff3135fb8b98;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=16b134e90b13d8525fdfd3535f3694bb451ade2e;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/include/datetime.php b/include/datetime.php index 16b134e90b..d614818cec 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']);