mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +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
|
- added warning message when an array is passed as
|
||||||
the "checked" value of html_radios (Monte)
|
the "checked" value of html_radios (Monte)
|
||||||
- fixed errormessage in _compile_smarty_ref() (messju)
|
- fixed errormessage in _compile_smarty_ref() (messju)
|
||||||
|
@@ -2142,11 +2142,12 @@ class Smarty
|
|||||||
} else {
|
} else {
|
||||||
// remove matching file names
|
// remove matching file names
|
||||||
$handle = opendir($auto_base);
|
$handle = opendir($auto_base);
|
||||||
|
$res = true;
|
||||||
while (false !== ($filename = readdir($handle))) {
|
while (false !== ($filename = readdir($handle))) {
|
||||||
if($filename == '.' || $filename == '..') {
|
if($filename == '.' || $filename == '..') {
|
||||||
continue;
|
continue;
|
||||||
} elseif (substr($auto_base . DIR_SEP . $filename,0,strlen($tname)) == $tname) {
|
} 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