Browse Source

Fix reset

dereuromark 8 years ago
parent
commit
cf914a744b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      View/Helper/IcalHelper.php

+ 4 - 1
View/Helper/IcalHelper.php

@@ -28,12 +28,13 @@ class IcalHelper extends AppHelper {
 	 * @return void
 	 */
 	public function reset() {
-		$this->$_data = [];
+		$this->_data = [];
 	}
 
 	/**
 	 * Add a new ical record.
 	 *
+	 * @param array $data
 	 * @return bool Success
 	 */
 	public function add($data = []) {
@@ -46,6 +47,8 @@ class IcalHelper extends AppHelper {
 	/**
 	 * Returns complete ical calender file content to output.
 	 *
+	 * @param array $globalData
+	 * @param bool $addStartAndEnd
 	 * @return string
 	 */
 	public function generate($globalData = [], $addStartAndEnd = true) {