Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Parse error: syntax error, unexpected '[' in /public_html/ogame/includes/classes/Database.class.php on line 202 #137

Closed
xteriumboy opened this issue Feb 6, 2016 · 5 comments

Comments

@xteriumboy
Copy link

$selects = implode(', ', is_null($key) ? [$column] : [$column, $key]);

@jkroepke
Copy link
Owner

jkroepke commented Feb 6, 2016

Your PHP version?

@xteriumboy
Copy link
Author

Apache Version 2.2.27
PHP Version 5.3.29
MySQL Version 5.5.45-cll-lve
Architecture x86_64
Operating System linux

@Jbaukens
Copy link
Contributor

Jbaukens commented Feb 6, 2016

I have some time this related to the same line what could cause this ?

[06-Feb-2016 17:37:09] NOTICE: "Undefined index: keys"
File: /home/admin/web/xterium.space/public_html/includes/classes/Database.class.php | Line: 239
URL: http://xterium.space/json.php | Version: UNKNOWN
USERID:
Stack trace:
#0 /includes/classes/Database.class.php(239): errorHandler(8, 'Undefined index...', '/home/admin/web...', 239, Array)
#1 /includes/classes/Config.class.php(90): Database->nativeQuery('SELECT * FROM %...')
#2 /includes/classes/Config.class.php(66): Config::generateInstances()
#3 /includes/common.php(114): Config::get()
#4 /json.php(7): require('/home/admin/web...')
#5 {main}

@xteriumboy
Copy link
Author

It posibil to share this relase?

jkroepke added a commit that referenced this issue Feb 9, 2016
@jkroepke
Copy link
Owner

jkroepke commented Feb 9, 2016

Checkout b8cf2b7

jkroepke pushed a commit that referenced this issue Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants