HomePhorge

Fix #5127 - error when accessing array elements
4fa24bb4be7fUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix #5127 - error when accessing array elements

Accesing an array with an integer index (ie $array[1]) is producing
a ruby error: can't convert String into Integer

This is because the array index is not properly converted to an number
before the array element lookup is performed.

Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>

Details

Provenance
Brice Figureau <brice-puppet@daysofwonder.com>Authored on
James Turnbull <james@lovedthanlost.net>Committed on Nov 9 2010, 7:53 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUabb8c669378a: (#5242) Fix schedule specs that fail near daylight savings
Branches
Unknown
Tags
Unknown

Event Timeline

James Turnbull <james@lovedthanlost.net> committed rPU4fa24bb4be7f: Fix #5127 - error when accessing array elements (authored by Brice Figureau <brice-puppet@daysofwonder.com>).Nov 9 2010, 7:53 PM