Bug #19129
closedModul List T3 Backend
0%
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)