Skip to content

Commit faa19e7

Browse files
authored
Merge branch 'master' into master
2 parents 8418332 + 5fde255 commit faa19e7

6 files changed

Lines changed: 12 additions & 8 deletions

File tree

inc/classes/Tool.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public static function printJs($src, $chachable = false) {
423423
//помещаем скрипт в head
424424
echo "<script type=\"text/javascript\">jsToHead('$src')</script>";
425425
} else {
426-
echo '<script type="text/javascript" language="JavaScript" src="' . $src . '"></script>';
426+
echo '<script type="text/javascript" src="' . $src . '"></script>';
427427
}
428428
}
429429

@@ -437,14 +437,14 @@ public static function printJs($src, $chachable = false) {
437437
*
438438
* @return array
439439
*/
440-
public static function arrayMultisort($array, $on, $order = SORT_ASC) {
440+
public static function arrayMultisort($array, $key, $order = SORT_ASC) {
441441

442442
switch ($order) {
443443
case SORT_ASC:
444-
usort($array, create_function('$a, $b', "return strnatcasecmp(\$a['$on'], \$b['$on']);"));
444+
usort($array, function($a, $b) use ($key) {return strnatcasecmp($a[$key], $b[$key]);});
445445
break;
446446
case SORT_DESC:
447-
usort($array, create_function('$a, $b', "return strnatcasecmp(\$b['$on'], \$a['$on']);"));
447+
usort($array, function($a, $b) use ($key) {return strnatcasecmp($b[$key], $a[$key]);});
448448
break;
449449
}
450450

@@ -700,4 +700,5 @@ public static function getInTranslit($string)
700700
);
701701
return $str = iconv("UTF-8", "UTF-8//IGNORE", strtr($string, $replace));
702702
}
703+
703704
}

inc/classes/class.list.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ public function setRecordCount($value) {
103103
/**
104104
* @param $name
105105
* @param string $width
106-
* @param $type
106+
* @param string $type
107107
* @param string $in
108108
* @param string $processing
109109
* @param bool $sort
110110
*/
111-
public function addColumn($name, $width = "0%", $type = 'TEXT', $in = "", $processing = "", $sort = true) {
111+
public function addColumn($name, $width = "0%", $type = "TEXT", $in = "", $processing = "", $sort = true) {
112112
if (!array_key_exists($this->main_table_id, $this->table_column)) {
113113
$this->table_column[$this->main_table_id] = array();
114114
}
@@ -541,7 +541,7 @@ public function getData() {
541541
};
542542
}
543543
}
544-
if (!$this->extOrder && !$this->customSearchHasVal) {
544+
if (isset($this->table_column[$this->main_table_id]) && !$this->extOrder && !$this->customSearchHasVal) {
545545
if ($order) {
546546
$orderField = $order + 1;
547547
$tempSQL = $this->SQL;

mod/cron/v3.0.2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 6b9675e94add0ba82f914ea93a09771922e2b44b

mod/profile/v2.0.0

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 69a015c02875ae8611c20f3d44198b0417ef6987

mod/webservice/v2.2.0

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 983c6a8635455feefabff2c976b0a505bd79d81a

mod/webservice/v2.5.0

Submodule v2.5.0 updated from 7f2dab4 to 5fc45cc

0 commit comments

Comments
 (0)