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)';