Strange mysql echo on my page
Permalink
Hi,
i found a stange mysql output on my html page :
<hr>
(mysql): SELECT DISTINCT u.uID, u.uName FROM Users u left join UserGroups ug_5 on ug_5.uID = u.uID left join UserSearchIndexAttributes on (UserSearchIndexAttributes.uID = u.uID) where 1=1 and ug_5.gID=5 and u.uIsActive = '1' and u.uIsValidated != '0' order by ak_place_order asc limit 0,100
<hr>
When i remove $userList->filterByGroup('Employees'); from
... it disapear.
It's a debug mode? How delete that ?
Thanks a lot
i found a stange mysql output on my html page :
<hr>
(mysql): SELECT DISTINCT u.uID, u.uName FROM Users u left join UserGroups ug_5 on ug_5.uID = u.uID left join UserSearchIndexAttributes on (UserSearchIndexAttributes.uID = u.uID) where 1=1 and ug_5.gID=5 and u.uIsActive = '1' and u.uIsValidated != '0' order by ak_place_order asc limit 0,100
<hr>
When i remove $userList->filterByGroup('Employees'); from
$userList = new UserList(); $userList->debug(false); $userList->filterByGroup('Employees'); $userList->sortBy('ak_place_order', 'asc'); $userList = $userList->get();
... it disapear.
It's a debug mode? How delete that ?
Thanks a lot
Nobody knows?
I found the roots of the problem.
At line 136 in librairies/item_list they are a strange double instruction :
If i change the first 'true' in 'false' it disapear.
At line 136 in librairies/item_list they are a strange double instruction :
if ($this->debug) { $db->setDebug(true); } //echo $q.'<br>'; $resp = $db->GetAll($q); if ($this->debug) { $db->setDebug(false); }
If i change the first 'true' in 'false' it disapear.