Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-03-20 11:35:15 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-03-20 11:35:15 +0300
commita8b2f35b743e2218c67809d5a884cdc4cb0a174a (patch)
treec207211bcd72901c97c3454b6151b40a26e86c26 /js/indexes.js
parentafdcab9f4263ec4481a105604abda854f334511c (diff)
Return when source_array is null
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/indexes.js')
-rw-r--r--js/indexes.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/indexes.js b/js/indexes.js
index a0427966ee..71a8786046 100644
--- a/js/indexes.js
+++ b/js/indexes.js
@@ -123,6 +123,9 @@ function PMA_removeColumnFromIndex(col_index)
if (previous_index.length) {
previous_index = previous_index.split(',');
var source_array = PMA_getIndexArray(previous_index[0]);
+ if (source_array == null) {
+ return;
+ }
// Remove column from index array.
var source_length = source_array[previous_index[1]].columns.length;
@@ -687,6 +690,9 @@ AJAX.registerOnload('indexes.js', function () {
// Select a source array.
var source_array = PMA_getIndexArray(index_choice);
+ if (source_array == null) {
+ return;
+ }
if (source_array.length === 0) {
var index = {