mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
removed notice of undefined var in _rm_auto()
This commit is contained in:
1
NEWS
1
NEWS
@@ -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)
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user