Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit d883f04

Browse files
committed
Fix another "Parameter must be an array or an object that implements Countable" error.
1 parent ee01e08 commit d883f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/modules/core/drivers/DC_Table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3424,7 +3424,7 @@ protected function treeView()
34243424
$_buttons = ' ';
34253425

34263426
// Show paste button only if there are no root records specified
3427-
if (\Input::get('act') != 'select' && $GLOBALS['TL_DCA'][$this->strTable]['list']['sorting']['mode'] == 5 && $blnClipboard && ((!count($GLOBALS['TL_DCA'][$table]['list']['sorting']['root']) && $GLOBALS['TL_DCA'][$table]['list']['sorting']['root'] !== false) || $GLOBALS['TL_DCA'][$table]['list']['sorting']['rootPaste']))
3427+
if (\Input::get('act') != 'select' && $GLOBALS['TL_DCA'][$this->strTable]['list']['sorting']['mode'] == 5 && $blnClipboard && ((empty($GLOBALS['TL_DCA'][$table]['list']['sorting']['root']) && $GLOBALS['TL_DCA'][$table]['list']['sorting']['root'] !== false) || $GLOBALS['TL_DCA'][$table]['list']['sorting']['rootPaste']))
34283428
{
34293429
// Call paste_button_callback (&$dc, $row, $table, $cr, $childs, $previous, $next)
34303430
if (is_array($GLOBALS['TL_DCA'][$this->strTable]['list']['sorting']['paste_button_callback']))

0 commit comments

Comments
 (0)