Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
07de2dee
Commit
07de2dee
authored
Apr 04, 2016
by
Carsten Rose
Browse files
Store.php: phpunit: access to TYPO3_LOADED_EXT reports undefined index - wrapped with isset()
parent
9119931f
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/store/Store.php
View file @
07de2dee
...
...
@@ -179,7 +179,8 @@ class Store {
// If we are called through AJAX API (e.g. api/save.php), there is no TYPO3 environment.
if
(
isset
(
$_SERVER
[
'SCRIPT_FILENAME'
]))
{
$pos
=
strpos
(
$_SERVER
[
'SCRIPT_FILENAME'
],
$relExtDir
);
if
(
$pos
===
false
)
{
if
(
$pos
===
false
&&
isset
(
$GLOBALS
[
'TYPO3_LOADED_EXT'
][
EXT_KEY
][
'ext_localconf.php'
]))
{
// probably: index.php - THERE should be a TYPO3 environment.
$config
[
SYSTEM_PATH_EXT
]
=
dirname
(
$GLOBALS
[
'TYPO3_LOADED_EXT'
][
EXT_KEY
][
'ext_localconf.php'
]);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment