I submit the following patch file:
include/utils-activities.php: fix warnings on variables not set
include/utils-contacts.php bug in SQL causes errors
include/utils-databases.php buggy call to __record_find with unset variables
include/utils-workflow.php changed implementation of workflow_addition hook to make this usable
diff against CVS