You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file has a bug in function 'clear', when calling rsort($files). $files is not always set, causing rsort to fail with an error. Suggested fix:
public function clear() {
$this->load->language('extension/modification');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('extension/modification');
if ($this->validate()) {
// Make path into an array
$path = array(DIR_MODIFICATION . '*');
$files = array();
// While the path array is still populated keep looping through
while (count($path) != 0) {
$next = array_shift($path);
foreach (glob($next) as $file) {
// If directory add to path array
if (is_dir($file)) {
$path[] = $file . '/*';
}
// Add the file to the files to be deleted array
$files[] = $file;
}
}
// Reverse sort the file array
rsort($files);
.....
The text was updated successfully, but these errors were encountered:
The file has a bug in function 'clear', when calling rsort($files). $files is not always set, causing rsort to fail with an error. Suggested fix:
The text was updated successfully, but these errors were encountered: