Permalink
Browse files

Fix syntax error in viewlog.php

Reported in issue #74
  • Loading branch information...
cboltz committed Sep 13, 2017
1 parent dd06aa7 commit ae56c2b70044ce1438a3c8d8e94e7f34c0f5ffef
Showing with 1 addition and 1 deletion.
  1. +1 −1 viewlog.php
View
@@ -62,7 +62,7 @@
$table_log = table_by_key('log');
$page_size = isset($CONF['page_size']) ? intval($CONF['page_size']) : 35;
$query = "SELECT timestamp,username,domain,action,data FROM $table_log WHERE domain='$fDomain' ORDER BY timestamp DESC LIMIT $page_size");
$query = "SELECT timestamp,username,domain,action,data FROM $table_log WHERE domain='$fDomain' ORDER BY timestamp DESC LIMIT $page_size";
if (db_pgsql()) {
$query = "SELECT extract(epoch from timestamp) as timestamp,username,domain,action,data FROM $table_log WHERE domain='$fDomain' ORDER BY timestamp DESC LIMIT $page_size";
}

0 comments on commit ae56c2b

Please sign in to comment.