fixed sendnotifications.php