diff --git a/get.php b/get.php index 79a83b0..cd43411 100644 --- a/get.php +++ b/get.php @@ -105,11 +105,7 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac case 'WUBFILE': break; - case 'UPDATEONLY': - if(!isset($info['containsCU']) || !$info['containsCU']) { - return array('error' => 'NOT_CUMULATIVE_UPDATE'); - } - break; + case 'UPDATEONLY': break; default: if($useGeneratedPacks) { @@ -301,6 +297,9 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac $filesKeys = array_keys($files); $filesKeys = preg_grep('/Windows10\.0-KB/i', $filesKeys); + if(count($filesKeys) == 0) { + return array('error' => 'NOT_CUMULATIVE_UPDATE'); + } break; case 'WUBFILE': diff --git a/shared/main.php b/shared/main.php index d40bcfe..5513638 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.15.12'; + return '1.15.13'; } require_once dirname(__FILE__).'/auths.php';