Commit 5288f576 authored by anarcat's avatar anarcat Committed by anarcat

properly silence that ret warning

parent 09198474
......@@ -134,6 +134,7 @@ function provision_render_config($template, $variables) {
* - safety checking since we don't necessarly trust the removed files
*/
function _provision_recursive_delete($path) {
$ret = 1;
if (is_dir($path)) {
$d = dir($path);
while (($entry = $d->read()) !== FALSE) {
......@@ -154,8 +155,9 @@ function _provision_recursive_delete($path) {
$ret = $ret && $rm;
}
else {
$ret = provision_path('unlink', $path, TRUE, NULL,
$rm = provision_path('unlink', $path, TRUE, NULL,
dt('Deleting @path file failed.', array('@path' => $path)));
$ret = $ret && $rm;
}
return $ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment