diff --git a/app/Model/Answer.php b/app/Model/Answer.php index b90b05d..e27e887 100644 --- a/app/Model/Answer.php +++ b/app/Model/Answer.php @@ -11,7 +11,7 @@ class Answer extends AppModel { var $belongsTo = array('Question'); - function beforeSave() { + function beforeSave($options = array()) { $this->data['Answer']['answer'] = strip_tags($this->data['Answer']['answer'], allowed_tags('strip_tags')); $this->data['Answer']['response_heading'] = @@ -20,4 +20,4 @@ function beforeSave() { strip_tags($this->data['Answer']['response'], allowed_tags('strip_tags')); return true; } -} \ No newline at end of file +} diff --git a/app/Model/Question.php b/app/Model/Question.php index 6f8ad94..c6e5b83 100644 --- a/app/Model/Question.php +++ b/app/Model/Question.php @@ -20,11 +20,11 @@ protected function _parseQuestions($id = null) { } } - function beforeSave() { + function beforeSave($options = array()) { $this->data['Question']['question'] = strip_tags($this->data['Question']['question'], allowed_tags('strip_tags')); return true; } } -?> \ No newline at end of file +?>