Project

General

Profile

Actions

Bug #19129

closed

Modul List T3 Backend

Added by Maik Ernemann almost 16 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-07-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello TYPO3 Community!

An Error occurred by klick on modul list in the typo3 backend. I have changed further lines. I hope its helpfully. I think the problem stems from bad data, which is stored on this site.

Error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/apache/htdocs/typo3_src-4.2.1/t3lib/class.t3lib_db.php on line 795
typo3_src-4.2.1/t3lib/class.t3lib_db.php - Line 795:
Current:
return mysql_num_rows($res);

New:
if ($res) return mysql_num_rows($res);

Error: Warning: Invalid argument supplied for foreach() in /usr/local/apache/htdocs/typo3_src-4.2.1/typo3/class.db_list.inc on line 695
typo3_src-4.2.1/typo3/class.db_list.inc - Line 694:
Current:
foreach($TCA[$table]['columns'] as $fN => $fieldValue) {
if ($dontCheckUser ||
((!$fieldValue['exclude'] || $BE_USER->check('non_exclude_fields',$table.':'.$fN)) && $fieldValue['config']['type']!='passthrough')) {
$fieldListArr[]=$fN;
}
}

New:
if (is_array($TCA[$table]['columns'])) {
foreach($TCA[$table]['columns'] as $fN => $fieldValue) {
if ($dontCheckUser ||
((!$fieldValue['exclude'] || $BE_USER->check('non_exclude_fields',$table.':'.$fN)) && $fieldValue['config']['type']!='passthrough')) {
$fieldListArr[]=$fN;
}
}
}

For Pach see above!

(issue imported from #M9009)

Actions

Also available in: Atom PDF