a sakra to jsem netušil, že @ slouží k potlačení...
prosím můžete se jenom na to mrknout, se přiznám jsem úplně mimo

Vůbec se nemůžu chytit a hledat problém.
Moc děkuji a přeji hezký den
David
/**
* Searches the directory paths for a given file.
*
* @access protected
* @param array|string $path An path or array of path to search in
* @param string $file The file name to look for.
* @return mixed The full path and file name for the target file, or boolean false if the file is not found in any of the paths.
* @since 1.5
*/
function find($paths, $file)
{
settype($paths, 'array'); //force to array
// start looping through the path set
foreach ($paths as $path)
{
// get the path to the file
$fullname = $path.DS.$file;
// is the path based on a stream?
if (strpos($path, '://') === false)
{
// not a stream, so do a realpath() to avoid directory
// traversal attempts on the local file system.
@(tady jsem to dal) $path = realpath($path); // needed for substr() later
@(tady jsem to dal) $fullname = realpath($fullname);
}
// the substr() check added to make sure that the realpath()
// results in a directory registered so that
// non-registered directores are not accessible via directory
// traversal attempts.
if (file_exists($fullname) && substr($fullname, 0, strlen($path)) == $path) {
return $fullname;
}
}
// could not find the file in the set of paths
return false;