if(count($r)) {
foreach($r as $rr) {
- notification(array(
+ notification([
'uid' => $rr['uid'],
'type' => NOTIFY_SYSTEM,
'system_type' => 'testdrive_expire',
'source_name' => t('Administrator'),
'source_link' => $a->get_baseurl(),
'source_photo' => $a->get_baseurl() . '/images/person-80.jpg',
- ));
+ ]);
q("update user set expire_notification_sent = '%s' where uid = %d",
dbesc(datetime_convert()),