mirror of
https://github.com/unraid/webgui.git
synced 2026-04-30 06:49:24 -05:00
Fixed race condition for retain function in New Config
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright 2005-2016, Lime Technology
|
||||
* Copyright 2012-2016, Bergware International.
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -12,7 +12,7 @@
|
||||
?>
|
||||
<?
|
||||
function preset($disk) {
|
||||
return strpos($_POST['preset'],$disk['type'])!==false;
|
||||
return strpos($_POST['preset'],$disk['type'])!==false && strpos($disk['status'],'_NP')===false;
|
||||
}
|
||||
|
||||
@unlink('/boot/config/smart-one.cfg');
|
||||
|
||||
Reference in New Issue
Block a user