[Vtigercrm-developers] What is the purpose of calling to_html
Hamono, Chris (DPC)
Chris.Hamono at sa.gov.au
Thu May 14 00:35:00 GMT 2015
Before I change this particular piece of code, I'd like an idea on why it's being called.
/* ADODB newly added. replacement for mysql_fetch_array() */
function fetch_array(&$result) {
if($result->EOF) {
//$this->println("ADODB fetch_array return null");
return NULL;
}
$arr = $result->FetchRow();
if(is_array($arr))
$arr = array_map('to_html', $arr);
return $this->change_key_case($arr);
}
What is the purpose of calling the to_html function on every returned element from a database query?
It is a major cause of slowdown plus is poorly coded so I am trying to figure out why it is being used.
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150514/7775d5bf/attachment.html>
More information about the vtigercrm-developers
mailing list