Skip to content

Instantly share code, notes, and snippets.

@Webklex
Created June 12, 2013 08:44
Show Gist options
  • Save Webklex/5763753 to your computer and use it in GitHub Desktop.
Save Webklex/5763753 to your computer and use it in GitHub Desktop.
Typo3 - PHP Warning: readdir() Fehler [class.t3lib_div.php]
2823//Core: Error handler (BE): PHP Warning: readdir() expects parameter 1 to be resource, boolean given in typo3_src-4.7.10/t3lib/class.t3lib_div.php line 2828
2824 //ADDED 12.06.2013 - to erase error
2826
2827 if($handle !== false){
2828 while (($file = readdir($handle)) !== FALSE) {
2829 $recursionResult = NULL;
2830 if ($file !== '.' && $file !== '..') {
2831 if (@is_file($path . '/' . $file)) {
2832 $recursionResult = self::fixPermissions($path . '/' . $file);
2833 } elseif (@is_dir($path . '/' . $file)) {
2834 $recursionResult = self::fixPermissions($path . '/' . $file, TRUE);
2835 }
2836 if (isset($recursionResult) && !$recursionResult) {
2837 $result = FALSE;
2838 }
2839 }
2840 }
2841
2842 }
2843 /*END OF MODIFICATION*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment