We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9d455 commit 9c58742Copy full SHA for 9c58742
src/crud/crud_query_log.php
@@ -12,7 +12,7 @@
12
* crud_query_log()
13
* @return void
14
*/
15
-function crud_query_log()
+function crud_query_log($custid = null)
16
{
17
function_requirements('has_acl');
18
if ($GLOBALS['tf']->ima != 'admin' || !has_acl('client_billing')) {
@@ -23,7 +23,7 @@ function_requirements('has_acl');
23
$custid = $GLOBALS['tf']->variables->request['custid'];
24
elseif (isset($GLOBALS['tf']->variables->request['customer']))
25
$custid = $GLOBALS['tf']->variables->request['customer'];
26
- Crud::init('select * from query_log' . (isset($custid) ? ' where history_owner='.$custid : ''))
+ Crud::init('select * from query_log' . (!is_null($custid) ? ' where history_owner='.$custid : ''))
27
->set_order('history_timestamp', 'desc')
28
->disable_delete()
29
->disable_edit()
0 commit comments