summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2018-01-16 13:24:03 +0000
committerGreg Roach <fisharebest@gmail.com>2018-01-16 13:24:03 +0000
commit3ab21bb0e677767325453aadf2d4176d730c4090 (patch)
treeedffb13a806350a2ea1443687818b0981fac6898
parentda4ebda7df6bdbc4dd3f1c65ac793fddc8e7ac2e (diff)
downloadwebtrees-3ab21bb0e677767325453aadf2d4176d730c4090.tar.gz
webtrees-3ab21bb0e677767325453aadf2d4176d730c4090.tar.bz2
webtrees-3ab21bb0e677767325453aadf2d4176d730c4090.zip
Comments
-rw-r--r--admin_media.php8
-rw-r--r--admin_site_logs.php4
-rw-r--r--admin_users.php4
-rw-r--r--app/Http/Controllers/AdminController.php4
4 files changed, 10 insertions, 10 deletions
diff --git a/admin_media.php b/admin_media.php
index 6be247a8a1..9e719fc84a 100644
--- a/admin_media.php
+++ b/admin_media.php
@@ -145,8 +145,8 @@ switch ($action) {
if ($key > 0) {
$SELECT1 .= ',';
}
- // Datatables numbers columns 0, 1, 2
- // MySQL numbers columns 1, 2, 3
+ // Columns in datatables are numbered from zero.
+ // Columns in MySQL are numbered starting with one.
switch ($value['dir']) {
case 'asc':
$SELECT1 .= ":col_" . $key . " ASC";
@@ -214,8 +214,8 @@ switch ($action) {
if ($key > 0) {
$SELECT1 .= ',';
}
- // Datatables numbers columns 0, 1, 2
- // MySQL numbers columns 1, 2, 3
+ // Columns in datatables are numbered from zero.
+ // Columns in MySQL are numbered starting with one.
switch ($value['dir']) {
case 'asc':
$SELECT1 .= ":col_" . $key . " ASC";
diff --git a/admin_site_logs.php b/admin_site_logs.php
index 8a24587ced..f7a7dcd63a 100644
--- a/admin_site_logs.php
+++ b/admin_site_logs.php
@@ -128,8 +128,8 @@ case 'load_json':
if ($key > 0) {
$order_by .= ',';
}
- // Datatables numbers columns 0, 1, 2
- // MySQL numbers columns 1, 2, 3
+ // Columns in datatables are numbered from zero.
+ // Columns in MySQL are numbered starting with one.
switch ($value['dir']) {
case 'asc':
$order_by .= (1 + $value['column']) . " ASC ";
diff --git a/admin_users.php b/admin_users.php
index bc2e9ea55f..a4402b7880 100644
--- a/admin_users.php
+++ b/admin_users.php
@@ -179,8 +179,8 @@ case 'load_json':
if ($key > 0) {
$sql_select .= ',';
}
- // Datatables numbers columns 0, 1, 2
- // MySQL numbers columns 1, 2, 3
+ // Columns in datatables are numbered from zero.
+ // Columns in MySQL are numbered starting with one.
switch ($value['dir']) {
case 'asc':
$sql_select .= (1 + $value['column']) . " ASC ";
diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php
index e7ea24147d..db6568cda4 100644
--- a/app/Http/Controllers/AdminController.php
+++ b/app/Http/Controllers/AdminController.php
@@ -1743,8 +1743,8 @@ class AdminController extends BaseController {
if ($key > 0) {
$order_by .= ',';
}
- // Datatables numbers columns 0, 1, 2
- // MySQL numbers columns 1, 2, 3
+ // Columns in datatables are numbered from zero.
+ // Columns in MySQL are numbered starting with one.
switch ($value['dir']) {
case 'asc':
$order_by .= (1 + $value['column']) . ' ASC ';