Incorrect parameter passing between execute_sql_arr and execute_sql
Bug #837013 reported by
Howard Miller
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Hugh Davenport |
Bug Description
I'm looking at the very latest 1.3.7 code - not had a chance to look in 1.4.
Looking at the function execute_
The function does some stuff and then makes a call to execute_sql( $sql, $feedback ) noting $feedback as the second parameter (boolean). However, if you look at execute_sql() (line 135 for me), the second parameter is called $values and is an array.
Changed in mahara: | |
status: | New → Triaged |
importance: | Undecided → Low |
milestone: | none → 1.5.0 |
tags: | added: dmllib |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It seems that the feedback isn't use anyway, but there are functions that call it with that argument so we can't just remove it from the function. Though a quick survey shows that it isn't being used in the other functions as well....
The fix would be to remove the 2nd parameter to the execute_sql function call, and assume the default $values=null
https:/ /reviews. mahara. org/860