From fbccce51c617d817210c1bdcba5adc582624a8ae Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 5 Sep 2008 09:29:06 +0000 Subject: - Patch #261859 by rse, Damien Tournoud: make the trigger module work on PostgreSQL. --- modules/system/system.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.module b/modules/system/system.module index 4a9053c1f..005d21a89 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1492,7 +1492,7 @@ function system_actions_manage() { } $row = array(); - $instances_present = db_fetch_object(db_query("SELECT aid FROM {actions} WHERE parameters != ''")); + $instances_present = db_fetch_object(db_query("SELECT aid FROM {actions} WHERE parameters <> ''")); $header = array( array('data' => t('Action type'), 'field' => 'type'), array('data' => t('Description'), 'field' => 'description'), @@ -1596,7 +1596,7 @@ function system_actions_configure($form_state, $action = NULL) { if (is_numeric($action)) { $aid = $action; // Load stored parameter values from database. - $data = db_fetch_object(db_query("SELECT * FROM {actions} WHERE aid = %d", intval($aid))); + $data = db_fetch_object(db_query("SELECT * FROM {actions} WHERE aid = '%s'", $aid)); $edit['actions_description'] = $data->description; $edit['actions_type'] = $data->type; $function = $data->callback; -- cgit v1.2.3