Author Topic: Event Class function call error fix  (Read 1130 times)

apmuthu

  • Freshman
  • *
  • Posts: 28
    • View Profile
Event Class function call error fix
« on: December 27, 2012, 07:04:01 AM »
Line 2867 in application/controllers/ContactController.class.php calls function evt_add without second parameter.

The second parameter can be null as seen in a call at line 797 in application/controllers/AdministrationController.class.php

Hence we solve it by making it an optional parameter with a default of null.

function evt_add is defined in environment/classes/event/event.php in line 9 as:
   function evt_add($name, $data) {
which is changed to:
   function evt_add($name, $data=null) {
thereby solving the issue.


 

anything