summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Danielsson2010-02-04 16:35:45 (GMT)
committer Henrik Danielsson2010-02-04 16:35:45 (GMT)
commitf2ce4b9742994d545d7878251494576e6163145c (patch)
treed00d9b5fbd62c10e9b3a988311eefd705277bdf3
parente2ea2f24179b776f81474cb1ce84af9d5d4b0d58 (diff)
#660080 by TwoD: Fixed Notice: Undefined offset.
-rw-r--r--CHANGELOG.txt1
-rw-r--r--wysiwyg.admin.inc2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index e6626bd..81da546 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -15,6 +15,7 @@ Wysiwyg 7.x-3.x, xxxx-xx-xx
Wysiwyg 6.x-3.x, xxxx-xx-xx
---------------------------
+#660080 by TwoD: Fixed Notice: Undefined offset.
#462146 by TwoD: Cleaned up CKEditor implementation.
#380586 by SimonEast: Updated YUI editor: Version detection not working.
#610132 by TwoD: Updated CKEditor 3.0.1, stylesheets and version check.
diff --git a/wysiwyg.admin.inc b/wysiwyg.admin.inc
index e745e03..7466b83 100644
--- a/wysiwyg.admin.inc
+++ b/wysiwyg.admin.inc
@@ -383,7 +383,7 @@ function wysiwyg_profile_overview($form, &$form_state) {
$library = (isset($editor['library']) ? $editor['library'] : key($editor['libraries']));
$targs = array(
'@editor-path' => $editor['editor path'],
- '@library-filepath' => $editor['library path'] . '/' . $editor['libraries'][$library]['files'][0],
+ '@library-filepath' => $editor['library path'] . '/' . (isset($editor['libraries'][$library]['files'][0]) ? $editor['libraries'][$library]['files'][0] : key($editor['libraries'][$library]['files'])),
);
$instructions = '<p>' . t('Extract the archive and copy its contents into a new folder in the following location:<br /><code>@editor-path</code>', $targs) . '</p>';
$instructions .= '<p>' . t('So the actual library can be found at:<br /><code>@library-filepath</code>', $targs) . '</p>';