I've upgraded from 1.0 to 1.3-alpha2 and my global "geourl" is lost.

In past it was my home address and now it's only a:2:s:8:"latitude";i:0;s:9:"longitude";i:0;.

Comments

avpaderno’s picture

Version: 6.x-1.3-alpha2 » 6.x-1.x-dev
Status: Active » Fixed

I found a bug in the code, which was using the wrong parameters for array_splice().

Basing on the example code I found at http://www.php.net/manual/en/function.array-splice.php, the following code should return the first two items of an array:

  $input = array("red", "green", "blue", "yellow");
  array_splice($input, 2);
  // $input is now array("red", "green")

I tested it, and I got a different result (I really got the last two items of the array).

I fixed, and committed the code in CVS.

hass’s picture

Upgrade seems working, new followup #612210: Global settings not shown on settings page.

Status: Fixed » Closed (fixed)

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