diff options
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index bc61140e9..084bc5e1e 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -223,6 +223,8 @@ function drupal_access_denied() { * data, and redirect status. */ function drupal_http_request($url, $headers = array(), $method = 'GET', $data = NULL, $retry = 3) { + $result = new StdClass(); + // Parse the URL, and make sure we can handle the schema. $uri = parse_url($url); switch ($uri['scheme']) { @@ -385,7 +387,7 @@ function fix_gpc_magic() { */ function array2object($array) { if (is_array($array)) { - $object = new stdClass(); + $object = new StdClass(); foreach ($array as $key => $value) { $object->$key = $value; } |