BEGIN
-- make sure that act_start does not get modified if sent is set.
IF OLD.sent IS NOT NULL AND ( NEW.act_start != OLD.act_start OR NEW.act_when != OLD.act_when ) THEN
- UPDATE `Error: Can not update core_notify action dates after its set` SET x = 1;
+ UPDATE `Error: Can not update core_notify action dates after its sent` SET x = 1;
END IF;
END;