Permalink
Browse files

Workaround for "user" vs. "group" key change.

  • Loading branch information...
1 parent e43ff80 commit 301be8b7ac847c6053da4281bca474c60411099e Troy Topnik committed Apr 27, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 config/autoconfig.php
View
@@ -4,10 +4,14 @@
$services_json = json_decode($services,true);
$appinfo_json = json_decode($appinfo,true);
$mysql_config = $services_json["mysql-5.1"][0]["credentials"];
+if (array_key_exists("users", $appinfo_json))
+ $admin = $appinfo_json["users"][0];
+else
+ $admin = $appinfo_json["group"];
$AUTOCONFIG = array(
"installed" => false,
-"adminlogin" => $appinfo_json["users"][0],
+"adminlogin" => $admin,
"adminpass" => "changeme",
"directory" => "/app/app/data",
"dbtype" => "mysql",

0 comments on commit 301be8b

Please sign in to comment.