The services_client_data_process() assumes that there are hooks returned by the services_client_get_existing_hooks() function. If there aren't the variable isn't initialized and a notice and warning error are thrown since the code attempts to iterate over an undefined variable.

CommentFileSizeAuthor
#1 undefined-variable-hooks-1939636-1.patch482 bytescpliakas
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cpliakas’s picture

Status: Active » Needs review
FileSize
482 bytes

Attached patch initializes the variable to avoid the errors.

mhrabovcin’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, thanks.

mhrabovcin’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

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