From f2d1f2eb47422274d7567fb08af9c008d066a67b Mon Sep 17 00:00:00 2001 From: jsatoh Date: Sun, 8 Apr 2012 03:04:25 +0000 Subject: [PATCH] 2012-04-08 Junichi Satoh * godmode/admin_access_logs.php: Fixed SQL error with PostgreSQL. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5909 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/godmode/admin_access_logs.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ed342fb257..047847271c 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-04-08 Junichi Satoh + + * godmode/admin_access_logs.php: Fixed SQL error with PostgreSQL. + 2012-04-04 Miguel de Dios * extensions/update_pandora/functions.ajax.php, diff --git a/pandora_console/godmode/admin_access_logs.php b/pandora_console/godmode/admin_access_logs.php index 8b06f6050d..389a4d5edd 100644 --- a/pandora_console/godmode/admin_access_logs.php +++ b/pandora_console/godmode/admin_access_logs.php @@ -119,7 +119,7 @@ if ($filter_hours_old != 0) { $filter .= ' AND fecha >= DATE_ADD(NOW(), INTERVAL -' . $filter_hours_old . ' HOUR)'; break; case "postgresql": - $filter .= ' AND fecha >= DATE_ADD(NOW(), INTERVAL - \'' . $filter_hours_old . ' HOUR \')'; + $filter .= ' AND fecha >= NOW() - INTERVAL \'' . $filter_hours_old . ' HOUR \''; break; case "oracle": $filter .= ' AND fecha >= (SYSTIMESTAMP - INTERVAL \'' . $filter_hours_old . '\' HOUR)';