From f8204cc8ca7d5b770ad02d3e2f5b708f5924fe27 Mon Sep 17 00:00:00 2001
From: Yuriy Gerasimov <yuri.gerasimov@gmail.com>
Date: Sat, 2 Apr 2011 20:37:57 +0300
Subject: [PATCH] Issue #954964 by ygerasimov,marcingy: Followup change default value of parameters in node index to empty array.

---
 resources/node_resource.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/resources/node_resource.inc b/resources/node_resource.inc
index a66aab9..9a5771d 100644
--- a/resources/node_resource.inc
+++ b/resources/node_resource.inc
@@ -98,7 +98,7 @@ function _node_resource_definition() {
             'optional' => TRUE,
             'type' => 'array',
             'description' => 'Parameters',
-            'default value' => NULL,
+            'default value' => array(),
             'source' => array('param' => 'parameters'),
           ),
         ),
@@ -300,7 +300,7 @@ function _node_resource_delete($nid) {
  *     - Is there an easier syntax we can define which can make the urls
  *       for index requests more straightforward?
  */
-function _node_resource_index($page = 0, $fields = '*', $parameters = NULL) {
+function _node_resource_index($page, $fields, $parameters) {
   $node_select = db_select('node', 'n')
     ->addTag('node_access')
     ->orderBy('sticky', 'DESC')
-- 
1.7.0.4

