t() function called incorrectly causes warnings

quicksketch - October 29, 2009 - 02:27
Project:Services
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

This is a simple patch that fixes a misplaced parenthesis in services_keyauth.inc. Every time the error triggers it causes the following warnings:

    * warning: Invalid argument supplied for foreach() in /Users/nate/Sites/drupal6/includes/common.inc on line 888.
    * warning: strtr() [function.strtr]: The second argument is not an array in /Users/nate/Sites/drupal6/includes/common.inc on line 905.

AttachmentSize
services_token_error.patch977 bytes

#1

Pasqualle - October 31, 2009 - 10:43
Status:needs review» reviewed & tested by the community

looks good

#2

heyrocker - October 31, 2009 - 20:59
Status:reviewed & tested by the community» fixed

Committed thanks!

#3

System Message - November 14, 2009 - 21:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.