Fix parameter name
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 9 Dec 2009 21:01:26 +0000 (16:01 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 9 Dec 2009 21:01:26 +0000 (16:01 -0500)
kronolith/lib/Kronolith.php

index 9728c7e..2c82b7e 100644 (file)
@@ -113,8 +113,9 @@ class Kronolith
     public static function initEventMap($params)
     {
         // Add the apikeys
-        if (!empty($params['layers'])) {
-            foreach ($params['layers'] as $layer) {
+        if (!empty($params['providers'])) {
+            foreach ($params['providers'] as $layer) {
+
                 switch ($layer) {
                 case 'Google':
                     $params['apikeys']['google'] = $GLOBALS['conf']['api']['googlemaps'];