We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f172838 commit c44c60eCopy full SHA for c44c60e
root/app/www/public/ajax/starr.php
@@ -250,8 +250,13 @@
250
251
if (count($app['endpoints'][$_POST['endpoint']]) == 1) { //-- ONLY ONE METHOD, REMOVE THE ENDPOINT
252
unset($app['endpoints'][$_POST['endpoint']]);
253
- } else {
254
- unset($app['endpoints'][$_POST['endpoint']][$_POST['method']]); //-- MULTIPLE METHODS, REMOVE JUST THE ONE
+ } else { //-- MULTIPLE METHODS, REMOVE JUST THE ONE
+ foreach ($app['endpoints'][$_POST['endpoint']] as $methodIndex => $method) {
255
+ if ($method == $_POST['method']) {
256
+ unset($app['endpoints'][$_POST['endpoint']][$methodIndex]);
257
+ break;
258
+ }
259
260
}
261
262
$app['endpoints'] = json_encode($app['endpoints'], JSON_UNESCAPED_SLASHES);
0 commit comments