Skip to content

Commit a3f400e

Browse files
committed
Update DataTable.php
1 parent a984f38 commit a3f400e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Ajax/semantic/widgets/datatable/DataTable.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ protected function _generateContent($table) {
224224
InstanceViewer::setIndex(0);
225225
$fields = $this->_instanceViewer->getSimpleProperties();
226226
$groupByFields = $this->_instanceViewer->getGroupByFields();
227-
if (! is_array($groupByFields)) {
227+
if (! \is_array($groupByFields)) {
228228
$table->fromDatabaseObjects($objects, function ($instance) use ($table, $fields) {
229229
return $this->_generateRow($instance, $fields, $table);
230230
});
@@ -255,7 +255,7 @@ protected function _generateGroupByRow($index, $gbField, $table, $fields, &$acti
255255
if ($index == 0) {
256256
$uuids = [];
257257
}
258-
$uuid = uniqid("grp");
258+
$uuid = \uniqid("grp");
259259
$uuids[$gbField] = $uuid;
260260
$id = $this->_instanceViewer->getIdentifier();
261261
$result = $table->addMergeRow(\count($fields) + 1, $newValue);
@@ -276,7 +276,7 @@ private function getElementContent($elm) {
276276

277277
public function getFieldValue($index) {
278278
$index = $this->_getIndex($index);
279-
if (is_numeric($index)) {
279+
if (\is_numeric($index)) {
280280
$values = $this->_instanceViewer->getValues();
281281
if (isset($values[$index])) {
282282
return $values[$index];

0 commit comments

Comments
 (0)