removed notice of undefined var in _rm_auto()

This commit is contained in:
messju
2003-03-20 09:20:24 +00:00
parent bbd066aad9
commit 267a9c41d7
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- removed notice of undefined var in _rm_auto() (messju)
- added warning message when an array is passed as
the "checked" value of html_radios (Monte)
- fixed errormessage in _compile_smarty_ref() (messju)

View File

@@ -2142,11 +2142,12 @@ class Smarty
} else {
// remove matching file names
$handle = opendir($auto_base);
$res = true;
while (false !== ($filename = readdir($handle))) {
if($filename == '.' || $filename == '..') {
continue;
} elseif (substr($auto_base . DIR_SEP . $filename,0,strlen($tname)) == $tname) {
$this->_unlink($auto_base . DIR_SEP . $filename, $exp_time);
$res &= (bool)$this->_unlink($auto_base . DIR_SEP . $filename, $exp_time);
}
}
}