mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
see #74 - fix undefined $CONF[page_size]
This commit is contained in:
1 parent
4b999b3f6b
commit
2fc36e82ad
1 file changed
+4
-2
+4
-2
@@ -60,9 +60,11 @@ $tLog = array();
|
||||
if ($error != 1)
|
||||
{
|
||||
$table_log = table_by_key('log');
|
||||
$query = "SELECT timestamp,username,domain,action,data FROM $table_log WHERE domain='$fDomain' ORDER BY timestamp DESC LIMIT " . intval($CONF['page_size']);
|
||||
$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");
|
||||
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 " . intval($CONF['page_size']);
|
||||
$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";
|
||||
}
|
||||
$result=db_query($query);
|
||||
if ($result['rows'] > 0)
|
||||
|
||||
Reference in new issue
Block a user