diff options
author | Michal Čihař <mcihar@suse.cz> | 2012-07-27 12:39:50 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2012-07-27 12:39:50 +0400 |
commit | 6c2fc80ee38a6293918636cc150b03f33dc1f8f6 (patch) | |
tree | 05b713a8071b8c879b83f6c86c89d86c2e30b1dc /scripts | |
parent | c93326473e6bef3b4bcd32bb230df6885adda248 (diff) |
Adjust syntax, some PHP versions seem to dislike [ after method call
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/advisor2po | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/advisor2po b/scripts/advisor2po index 4cce5e7d45..b7f73b394d 100644 --- a/scripts/advisor2po +++ b/scripts/advisor2po @@ -16,7 +16,8 @@ function add_message($rules, $idx, $type) { global $messages, $locations; // Get message text if ($type == 'justification') { - $msg = Advisor::splitJustification($rules['rules'][$idx])[0]; + $msgs = Advisor::splitJustification($rules['rules'][$idx]); + $msg = $msgs[0]; } else { $msg = $rules['rules'][$idx][$type]; } |